question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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.05s, but over 2s in v23

When editing test file to trigger re-run, v22 can finish in 0.5s but v23 usually takes close to 3s

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:closed
  • Created 5 years ago
  • Reactions:35
  • Comments:48 (12 by maintainers)

github_iconTop GitHub Comments

6reactions
paraditecommented, Sep 25, 2018

Similar experience when trying to upgrade jest on OS X. To test the performance, we run jest --watch then a option Using 22.4.4, this takes 20 seconds Using 23.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.

6reactions
deletemecommented, Sep 13, 2018

@SimenB The slowdown happens on OS X too.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found