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 30 with --experimental-vm-modules (node 20 LTS) hangs forever with "module": "Node16" and "moduleResolution": "Node16" #14719

Closed
darkbasic opened this issue Nov 26, 2023 · 2 comments

Comments

@darkbasic
Copy link

darkbasic commented Nov 26, 2023

Version

30.0.0-alpha.2

Steps to reproduce

  1. Clone https://github.com/darkbasic/jest-esm-repro
  2. yarn install
  3. yarn test:mjs

Expected behavior

jest should not hang forever.

Actual behavior

With "module": "Node16" and "moduleResolution": "Node16" jest hangs forever. I'm using --experimental-vm-modules in node 20 LTS with latest jest 30 alpha.

Additional context

yarn test:cjs works well. The only difference is that Typescript transpiles into commonjs ("module": "CommonJS" and "moduleResolution": "Node10").

I've already tried node 18 and jest 29.

Environment

System:
    OS: Linux 6.6 Arch Linux
    CPU: (16) x64 AMD Ryzen 9 PRO 7940HS w/ Radeon 780M Graphics
  Binaries:
    Node: 20.10.0 - /run/user/1000/fnm_multishells/228422_1700991580411/bin/node
    Yarn: 4.0.2 - /run/user/1000/fnm_multishells/228422_1700991580411/bin/yarn
    npm: 10.2.3 - /run/user/1000/fnm_multishells/228422_1700991580411/bin/npm
  npmPackages:
    jest: ^30.0.0-alpha.2 => 30.0.0-alpha.2
@SimenB
Copy link
Member

SimenB commented Nov 26, 2023

Jest does not read tsconfig.json, so any config in there won't affect it out of the box.

So I think you need to report this to ts-jest which is the thing that does read tsconfig.json.

kulshekhar/ts-jest#4207 sounds related, but I'm not sure.

@SimenB SimenB closed this as not planned Won't fix, can't repro, duplicate, stale Nov 26, 2023
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants