-
Notifications
You must be signed in to change notification settings - Fork 553
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* upgrading packages + fixing tests and transitions * Fix invalid ref * Fix versioning * Formatting package.json * preventing warnings from showing in the tests * Make just run tests serially * removing unused ref
- Loading branch information
Showing
16 changed files
with
1,224 additions
and
665 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
// Place your settings in this file to overwrite default and user settings. | ||
{ | ||
// Place your settings in this file to overwrite default and user settings. | ||
"search.exclude": { | ||
"**/node_modules": true, | ||
"**/bower_components": true, | ||
"**/lib": true, | ||
"**/coverage": true | ||
"**/coverage": true, | ||
"**/examples": true | ||
}, | ||
"editor.formatOnSave": true, | ||
"prettier.printWidth": 100, | ||
"prettier.singleQuote": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,15 +4,7 @@ | |
"description": "Auth0 Lock", | ||
"author": "Auth0 <[email protected]> (http://auth0.com)", | ||
"license": "MIT", | ||
"keywords": [ | ||
"auth0", | ||
"auth", | ||
"openid", | ||
"authentication", | ||
"passwordless", | ||
"browser", | ||
"jwt" | ||
], | ||
"keywords": ["auth0", "auth", "openid", "authentication", "passwordless", "browser", "jwt"], | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/auth0/lock" | ||
|
@@ -28,10 +20,13 @@ | |
"precommit": "lint-staged", | ||
"lint": "eslint --ext .jsx,.js src/", | ||
"test": "cross-env BABEL_ENV=test zuul -- test/**/*.test.js", | ||
"test:browser": "cross-env BABEL_ENV=test zuul --local 8080 --disable-tunnel -- test/**/*.test.js", | ||
"test:cli": "cross-env BABEL_ENV=test mochify --extension=.jsx --transform=babelify test/**/*.test.js", | ||
"test:watch": "cross-env BABEL_ENV=test mochify --watch --extension=.jsx --transform=babelify test/**/*.test.js", | ||
"test:jest": "jest --coverage", | ||
"test:browser": | ||
"cross-env BABEL_ENV=test zuul --local 8080 --disable-tunnel -- test/**/*.test.js", | ||
"test:cli": | ||
"cross-env BABEL_ENV=test mochify --extension=.jsx --transform=babelify ./test/setup.js test/**/*.test.js", | ||
"test:watch": | ||
"cross-env BABEL_ENV=test mochify --watch --extension=.jsx --transform=babelify ./test/setup.js test/**/*.test.js", | ||
"test:jest": "jest --coverage --runInBand", | ||
"test:jest:watch": "jest --watch --coverage", | ||
"publish:cdn": "ccu", | ||
"release": "scripts/release.sh", | ||
|
@@ -45,15 +40,16 @@ | |
"babel-plugin-transform-css-import-to-string": "0.0.2", | ||
"babel-plugin-version-inline": "^1.0.0", | ||
"babel-preset-es2015": "^6.22.0", | ||
"babel-preset-react": "^6.16.0", | ||
"babel-preset-react": "^6.24.1", | ||
"babel-preset-stage-0": "^6.3.13", | ||
"babelify": "^7.2.0", | ||
"bump-version": "^0.5.0", | ||
"component-cdn-uploader": "auth0/component-cdn-uploader#v1.3.0", | ||
"cross-env": "^3.1.4", | ||
"css-loader": "^0.26.1", | ||
"dotenv": "^4.0.0", | ||
"enzyme": "2.7.0", | ||
"enzyme": "^3.1.0", | ||
"enzyme-adapter-react-16": "^1.0.1", | ||
"eslint": "^3.19.0", | ||
"eslint-config-prettier": "^1.7.0", | ||
"eslint-plugin-react": "^6.10.3", | ||
|
@@ -68,14 +64,13 @@ | |
"grunt-exec": "^0.4.6", | ||
"grunt-webpack": "^2.0.1", | ||
"husky": "^0.13.3", | ||
"jest": "19.0.0", | ||
"jest": "^21.2.1", | ||
"json-beautify": "^1.0.1", | ||
"jsonwebtoken": "^7.3.0", | ||
"lint-staged": "^3.4.0", | ||
"mochify": "^2.12.0", | ||
"mochify": "^3.3.0", | ||
"prettier": "^1.2.2", | ||
"react-addons-test-utils": "^15.6.0", | ||
"react-test-renderer": "^15.6.1", | ||
"react-test-renderer": "^16.0.0", | ||
"semver": "^5.3.0", | ||
"sinon": "^1.15.4", | ||
"stylus": "^0.54.5", | ||
|
@@ -98,10 +93,10 @@ | |
"immutable": "^3.7.3", | ||
"jsonp": "^0.2.0", | ||
"password-sheriff": "^1.1.0", | ||
"prop-types": "^15.5.10", | ||
"prop-types": "^15.6.0", | ||
"react": "^15.6.1 || ^16.0.0", | ||
"react-dom": "^15.6.1 || ^16.0.0", | ||
"react-transition-group": "^1.2.0", | ||
"react-transition-group": "^2.2.1", | ||
"superagent": "^3.3.1", | ||
"trim": "0.0.1", | ||
"url-join": "^1.1.0" | ||
|
@@ -114,32 +109,25 @@ | |
"localPath": "build" | ||
}, | ||
"jest": { | ||
"modulePaths": [ | ||
"<rootDir>/src/", | ||
"<rootDir>/src/__tests__" | ||
], | ||
"modulePaths": ["<rootDir>/src/", "<rootDir>/src/__tests__"], | ||
"setupFiles": ["<rootDir>/src/__tests__/setup-tests.js"], | ||
"coveragePathIgnorePatterns": [ | ||
"/node_modules/", | ||
"<rootDir>/test/", | ||
"<rootDir>/lib/", | ||
"<rootDir>/src/__tests__/testUtils.js" | ||
"<rootDir>/src/__tests__/testUtils.js", | ||
"<rootDir>/src/__tests__/setup-tests.js" | ||
], | ||
"testPathIgnorePatterns": [ | ||
"/node_modules/", | ||
"<rootDir>/test/", | ||
"<rootDir>/lib/", | ||
"<rootDir>/src/__tests__/testUtils.js" | ||
"<rootDir>/src/__tests__/testUtils.js", | ||
"<rootDir>/src/__tests__/setup-tests.js" | ||
], | ||
"coverageReporters": [ | ||
"lcov", | ||
"text-summary" | ||
] | ||
"coverageReporters": ["lcov", "text-summary"] | ||
}, | ||
"lint-staged": { | ||
"*.{js,jsx}": [ | ||
"npm run lint", | ||
"prettier --write --print-width 100 --single-quote", | ||
"git add" | ||
] | ||
"*.{js,jsx}": ["npm run lint", "prettier --write --print-width 100 --single-quote", "git add"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// setup file | ||
import { configure } from 'enzyme'; | ||
import Adapter from 'enzyme-adapter-react-16'; | ||
|
||
jest.mock('react-dom/node_modules/fbjs/lib/warning'); | ||
|
||
configure({ adapter: new Adapter() }); | ||
|
||
//jest polyfills | ||
global.requestAnimationFrame = function(callback) { | ||
setTimeout(callback, 0); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.