Skip to content

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

@dobernike

Description

@dobernike

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleIssues that didn't get attentionwaiting for feedbackWill autoclose in a while unless more data are provided

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions