Open ling1726 opened 2 years ago
Looks like it's working for me in Chrome and Firefox. Tried a dozen runs in each.
Chrome:
❯ npm test
$ jest
PASS ./index.test.js
foo
✓ bar (55 ms)
Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 0 total
Time: 0.328 s, estimated 1 s
Ran all test suites.
Firefox (tends to be slower):
❯ npm test
$ jest
PASS ./index.test.js
foo
✓ bar (88 ms)
Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 0 total
Time: 0.543 s, estimated 1 s
Ran all test suites.
I'm using windows on Microsoft Edge 104.0.1293.47. I can still seem to reproduce the error
I can also confirm that on windows with Chrome it works 🤔
Description of Bug
Using
jest@28.1.3
fails with the error:Steps to Reproduce
npm test
Additionally I created a stackblitz with jest 27 which work:
Expected Behavior
Behaviour of these 2 stackblitzes should be the same
Screenshots/Screencast
If applicable, add screenshots to help explain your problem.
Additional Context/Questions Add any other context or questions regarding this bug.