Skip to content

Commit

Permalink
Upgrade to Jest 16 (#858)
Browse files Browse the repository at this point in the history
* Update react-scripts dependencies to use jest 16

* Remove testRegex from Jest config (now default)
  • Loading branch information
chase authored and gaearon committed Oct 11, 2016
1 parent 351e449 commit 3539d04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/react-scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"autoprefixer": "6.4.1",
"babel-core": "6.14.0",
"babel-eslint": "6.1.2",
"babel-jest": "15.0.0",
"babel-jest": "16.0.0",
"babel-loader": "6.2.5",
"babel-preset-react-app": "^0.2.1",
"case-sensitive-paths-webpack-plugin": "1.1.4",
Expand All @@ -51,7 +51,7 @@
"gzip-size": "3.0.0",
"html-webpack-plugin": "2.22.0",
"http-proxy-middleware": "0.17.1",
"jest": "15.1.1",
"jest": "16.0.1",
"json-loader": "0.5.4",
"object-assign": "4.1.0",
"path-exists": "2.1.0",
Expand Down
1 change: 0 additions & 1 deletion packages/react-scripts/utils/createJestConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ module.exports = (resolve, rootDir, isEjecting) => {
setupTestFrameworkScriptFile: setupTestsFile,
testPathIgnorePatterns: ['<rootDir>/(build|docs|node_modules)/'],
testEnvironment: 'node',
testRegex: '(/__tests__/.*|\\.(test|spec))\\.(js|jsx)$',
};
if (rootDir) {
config.rootDir = rootDir;
Expand Down

0 comments on commit 3539d04

Please sign in to comment.