Commit 71e09604 authored by Rogelio Guzman's avatar Rogelio Guzman Committed by Joe Haddad
Browse files

Update to Jest 19 (#1614)

* Upgrade to Jest 19

* Use testMatch

* Correct version
parent f3660280
3 merge requests!12191Lim.Pisey.168:/Identified - We are currently investigating reports of missing build logs. The issue has been identified and a resolution is in progress. We will provide a further update when available.Mar 21, 09:02 UTC,!12853brikk,!5717Automatically extract project file structure from build bundle file
Showing with 5 additions and 4 deletions
+5 -4
......@@ -26,7 +26,7 @@
"autoprefixer": "6.7.7",
"babel-core": "6.23.1",
"babel-eslint": "7.1.1",
"babel-jest": "18.0.0",
"babel-jest": "19.0.0",
"babel-loader": "7.0.0",
"babel-preset-react-app": "^2.1.1",
"babel-runtime": "^6.20.0",
......@@ -49,7 +49,7 @@
"html-webpack-plugin": "2.28.0",
"http-proxy-middleware": "0.17.3",
"inquirer": "3.0.6",
"jest": "18.1.0",
"jest": "19.0.2",
"object-assign": "4.1.1",
"postcss-loader": "1.3.3",
"promise": "7.1.1",
......
......@@ -25,7 +25,7 @@ module.exports = (resolve, rootDir, isEjecting) => {
collectCoverageFrom: ['src/**/*.{js,jsx}'],
setupFiles: [resolve('config/polyfills.js')],
setupTestFrameworkScriptFile: setupTestsFile,
testPathIgnorePatterns: [
testMatch: [
// Ignore the following directories:
// build
// - the build output directory
......@@ -37,7 +37,8 @@ module.exports = (resolve, rootDir, isEjecting) => {
// - ignore tests in dependencies
// scripts
// - directory generated upon eject
'<rootDir>[/\\\\](build|\\.cache|docs|node_modules|scripts)[/\\\\]',
'<rootDir>/!(build|docs|node_modules|scripts)/**/__tests__/**/*.js?(x)',
'<rootDir>/!(build|docs|node_modules|scripts)/**/?(*.)(spec|test).js?(x)',
],
testEnvironment: 'node',
testURL: 'http://localhost',
......
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