Re-run test in v23 is slower than v22 on Windows
See original GitHub issue💥 Regression Report
Re-run test in version 23 is significantly slower than version 22 on Windows
Last working version
Worked up to version: 22.4.4
Stopped working in version: 23.0.0
To Reproduce
repo: testjest22 repo: testjest23
These two repos only contains a test file jest.test.js
and install different jest version.
test('foo', () => {
expect('foo').toBe('foo')
})
run yarn test --watchAll --env=node
then, press Enter to trigger a test run
In v22, it takes about 0.05
s, but over 2
s in v23
When editing test file to trigger re-run,
v22 can finish in 0.5
s but v23 usually takes close to 3
s
Run npx envinfo --preset jest
System:
OS: Windows 10
CPU: x64 Intel(R) Core(TM) i5-5250U CPU @ 1.60GHz
Binaries:
Yarn: 1.7.0 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 5.6.0 - C:\Program Files\nodejs\npm.CMD
Update: It is an issue only on Windows, test it on Linux, just a little bit slower but acceptable.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:35
- Comments:48 (12 by maintainers)
Top Results From Across the Web
Automation 360 v.24 Release Notes
Review what's new and changed, and the fixes and limitations in the Automation 360 v.24 (Build 12350) release.
Read more >Laurence Tratt: Fast Enough VMs in Fast Enough Time
Even the second is extremely, sometimes almost unusably, slow: it is roughly 5-10x slower than CPython, tending towards the slower end of ...
Read more >Page 3 - Greg Benz Photography
Photoshop v23.2 just added support for a new file format: webP. In this tutorial, you'll learn what webP is, why you should consider...
Read more >Aleph - Ex Libris Knowledge Center
Answers as provided by our product analysts, to commonly raised questions.
Read more >Pulmonary Function Test, Offspring Cohort Exam 6: Protocol
The FEV1, FVC, and MIP were found to be associated with cardio-pulmonary symptoms; anthropometric measures, past exposures, and subclinical cardiovascular ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Similar experience when trying to upgrade jest on OS X. To test the performance, we run
jest --watch
thena
option Using22.4.4
, this takes 20 seconds Using23.0.0
, this takes 58 seconds So the slowdown happens with the version 23 major release. In both cases, we make sure snapshots are updated and all changes are committed (git status
is clean). Will try to create a minimal reproducible repo if I have time.@SimenB The slowdown happens on OS X too.