-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Closed
Labels
Description
🐛 Bug Report
Filing bug per #7732 #7732 (comment)
Jest v24 takes 38 seconds vs v23 28 seconds to run 50 suites (296 tests).
To Reproduce
Steps to reproduce the behavior:
Jest v23 setup:
.babelrc
{
"presets": ["es2015", "react", "stage-3", "env"]
}
package.json:
...
"babel-core": "6.26.0",
"babel-jest": "22.4.1",
"babel-loader": "7.1.2",
"babel-preset-env": "1.6.1",
"babel-preset-es2015": "6.24.1",
"babel-preset-react": "6.24.1",
"babel-preset-stage-3": "6.24.1",
"jest": "23.6.0",
...
Jest v24 setup:
.babelrc
{
"presets": ["@babel/preset-env", "@babel/preset-react"],
"plugins": [
"@babel/plugin-syntax-dynamic-import",
"@babel/plugin-syntax-import-meta",
["@babel/plugin-proposal-class-properties", { "loose": false },
"@babel/plugin-proposal-json-strings"
]
}
package.json:
...
"@babel/core": "7.2.2",
"@babel/plugin-proposal-class-properties": "7.3.0",
"@babel/plugin-proposal-json-strings": "7.2.0",
"@babel/plugin-syntax-dynamic-import": "7.2.0",
"@babel/plugin-syntax-import-meta": "7.2.0",
"@babel/preset-env": "7.3.1",
"@babel/preset-react": "7.0.0",
"jest": "24.1.0",
...
Jest config is not changed between v23 and v24:
module.exports = {
'verbose': false,
'coverageThreshold': {
'global': {
'branches': 40,
'functions': 45,
'lines': 50,
'statements': 50
}
},
'projects': [
'<rootDir>/src/test/js/reactapp'
],
'moduleDirectories': [
'src',
'node_modules'
],
'testURL': 'http://mockserver:9999',
'collectCoverage': true,
'coverageDirectory': '<rootDir>/build/coverage/',
'coverageReporters': [
'json',
'html'
]
};
Expected behavior
Jest v24 running performance matches v23.
Link to repl or repo (highly encouraged)
Not available
Run npx envinfo --preset jest
Paste the results here:
System:
OS: Windows 7
CPU: (4) x64 Intel(R) Xeon(R) CPU E5-2695 v4 @ 2.10GHz
Binaries:
Node: 8.12.0 - C:\Program Files\nodejs\node.EXE
npm: 6.4.1 - C:\Program Files\nodejs\npm.CMDoskarolsson-jimdo, wawrzy, ericchernuka, dev99problems, tbergquist-godaddy and 36 moreDylanVann, grhallenbeck, Ninjef, nandito, shenlin192 and 3 more