Skip to content

Commit 31a96f4

Browse files
chasefeiqitian
authored andcommitted
Upgrade to Jest 16 (facebook#858)
* Update react-scripts dependencies to use jest 16 * Remove testRegex from Jest config (now default)
1 parent acd5518 commit 31a96f4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Diff for: packages/react-scripts/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"autoprefixer": "6.4.1",
2727
"babel-core": "6.14.0",
2828
"babel-eslint": "6.1.2",
29-
"babel-jest": "15.0.0",
29+
"babel-jest": "16.0.0",
3030
"babel-loader": "6.2.5",
3131
"babel-preset-react-app": "^0.2.1",
3232
"case-sensitive-paths-webpack-plugin": "1.1.4",
@@ -51,7 +51,7 @@
5151
"gzip-size": "3.0.0",
5252
"html-webpack-plugin": "2.22.0",
5353
"http-proxy-middleware": "0.17.1",
54-
"jest": "15.1.1",
54+
"jest": "16.0.1",
5555
"json-loader": "0.5.4",
5656
"object-assign": "4.1.0",
5757
"path-exists": "2.1.0",

Diff for: packages/react-scripts/utils/createJestConfig.js

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ module.exports = (resolve, rootDir, isEjecting) => {
2727
setupTestFrameworkScriptFile: setupTestsFile,
2828
testPathIgnorePatterns: ['<rootDir>/(build|docs|node_modules)/'],
2929
testEnvironment: 'node',
30-
testRegex: '(/__tests__/.*|\\.(test|spec))\\.(js|jsx)$',
3130
};
3231
if (rootDir) {
3332
config.rootDir = rootDir;

0 commit comments

Comments
 (0)