Commit 3539d040 authored by Chase Colman's avatar Chase Colman Committed by Dan Abramov
Browse files

Upgrade to Jest 16 (#858)

* Update react-scripts dependencies to use jest 16

* Remove testRegex from Jest config (now default)
parent 351e449e
Showing with 2 additions and 3 deletions
+2 -3
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
"autoprefixer": "6.4.1", "autoprefixer": "6.4.1",
"babel-core": "6.14.0", "babel-core": "6.14.0",
"babel-eslint": "6.1.2", "babel-eslint": "6.1.2",
"babel-jest": "15.0.0", "babel-jest": "16.0.0",
"babel-loader": "6.2.5", "babel-loader": "6.2.5",
"babel-preset-react-app": "^0.2.1", "babel-preset-react-app": "^0.2.1",
"case-sensitive-paths-webpack-plugin": "1.1.4", "case-sensitive-paths-webpack-plugin": "1.1.4",
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
"gzip-size": "3.0.0", "gzip-size": "3.0.0",
"html-webpack-plugin": "2.22.0", "html-webpack-plugin": "2.22.0",
"http-proxy-middleware": "0.17.1", "http-proxy-middleware": "0.17.1",
"jest": "15.1.1", "jest": "16.0.1",
"json-loader": "0.5.4", "json-loader": "0.5.4",
"object-assign": "4.1.0", "object-assign": "4.1.0",
"path-exists": "2.1.0", "path-exists": "2.1.0",
......
...@@ -27,7 +27,6 @@ module.exports = (resolve, rootDir, isEjecting) => { ...@@ -27,7 +27,6 @@ module.exports = (resolve, rootDir, isEjecting) => {
setupTestFrameworkScriptFile: setupTestsFile, setupTestFrameworkScriptFile: setupTestsFile,
testPathIgnorePatterns: ['<rootDir>/(build|docs|node_modules)/'], testPathIgnorePatterns: ['<rootDir>/(build|docs|node_modules)/'],
testEnvironment: 'node', testEnvironment: 'node',
testRegex: '(/__tests__/.*|\\.(test|spec))\\.(js|jsx)$',
}; };
if (rootDir) { if (rootDir) {
config.rootDir = rootDir; config.rootDir = rootDir;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment