-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug?]: Jest crashed in 3.2.0-rc (infinity loop) #4129
Comments
I'm guessing you're running into nodejs/node#41221, try updating to Node.js v16.14.0 or v17.4.0. Without a reproduction that's just a guess though, please provide an actual reproduction that we can clone and run. |
I also have this issue, and node 16/17 don't resolve the issue. For a trivial repro: $ mkdir -p test-test && cd jest-test
$ yarn init -2
$ yarn add jest
$ node --version
v17.6.0
$ yarn --version
3.2.0
$ yarn jest --passWithNoTests
^C% # hangs
$ yarn set version 3.1.1
$ yarn --version
3.1.1
$ yarn jest --passWithNoTests
No tests found, exiting with code 0 I am on Fedora 35, if that makes a difference. |
We have the this issue: The command |
Ran into the same issue --> upgrading to node.js v16.14.0 (from 16.13.x) fixed it for me. |
I'm using |
Hi! 👋 This issue looks stale, and doesn't feature the Note that we require Sherlock reproductions for long-lived issues (rather than standalone git repositories or similar) because we're a small team. Sherlock gives us the ability to check which bugs are still affecting the master branch at any given point, and decreases the amount of code we need to run on our own machines (thus leading to faster bug resolutions). It helps us help you! 😃 If you absolutely cannot reproduce a bug on Sherlock (for example because it's a Windows-only issue), a maintainer will have to manually add the |
Self-service
Describe the bug
After I install yarn canary build (3.2.0-rc.15), I got infinity loop when I started jest.
Moved back to 3.1.1 and now everything right
Monorepo have package with "type: module"
and I use pnpEnableEsmLoader: true
For fixed it I used additional flags in jest: "jest --runInBand --detectOpenHandles --forceExit"
To reproduce
You need have jest and yarn berry, mb workspaces with cjs and esm packages
install yarn canary build - "yarn set version canary" (3.2.0-rc.15)
try to use jest
Environment
Additional context
The text was updated successfully, but these errors were encountered: