Skip to content
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

Closed
1 task
dobernike opened this issue Feb 17, 2022 · 6 comments
Closed
1 task

[Bug?]: Jest crashed in 3.2.0-rc (infinity loop) #4129

dobernike opened this issue Feb 17, 2022 · 6 comments
Labels
bug Something isn't working stale Issues that didn't get attention waiting for feedback Will autoclose in a while unless more data are provided

Comments

@dobernike
Copy link

Self-service

  • I'd be willing to implement a fix

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

System:
    OS: macOS 12.1
    CPU: (10) arm64 Apple M1 Pro
  Binaries:
    Node: 14.19.0 - /private/var/folders/73/zstsh7455c9fjsv3t1g9_4vm0000gn/T/xfs-a4b22e0c/node
    Yarn: 3.2.0-rc.15 - /private/var/folders/73/zstsh7455c9fjsv3t1g9_4vm0000gn/T/xfs-a4b22e0c/yarn
    npm: 6.14.16 - /opt/homebrew/bin/npm

Additional context

image

@dobernike dobernike added the bug Something isn't working label Feb 17, 2022
@merceyz
Copy link
Member

merceyz commented Feb 17, 2022

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.

@merceyz merceyz added the waiting for feedback Will autoclose in a while unless more data are provided label Feb 17, 2022
@arlyon
Copy link

arlyon commented Feb 23, 2022

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.

@stefpb
Copy link

stefpb commented Feb 23, 2022

We have the this issue: The command yarn test is stucked with no output. Downgrade to yarn@3.1.1 helps.

@protyze
Copy link

protyze commented Mar 1, 2022

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.

Ran into the same issue --> upgrading to node.js v16.14.0 (from 16.13.x) fixed it for me.

@darthtrevino
Copy link
Contributor

I'm using jest --runInBand as a workaround

@yarnbot
Copy link
Collaborator

yarnbot commented Apr 3, 2022

Hi! 👋

This issue looks stale, and doesn't feature the reproducible label - which implies that you didn't provide a working reproduction using Sherlock. As a result, it'll be closed in a few days unless a maintainer explicitly vouches for it or you edit your first post to include a formal reproduction (you can use the playground for that).

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 upholded label. Thanks for helping us triaging our repository! 🌟

@yarnbot yarnbot added the stale Issues that didn't get attention label Apr 3, 2022
@merceyz merceyz closed this as completed Apr 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale Issues that didn't get attention waiting for feedback Will autoclose in a while unless more data are provided
Projects
None yet
Development

No branches or pull requests

7 participants