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]: import.meta.resolve behaves differently in Jest and Node #15313

Open
Kaciras opened this issue Sep 19, 2024 · 1 comment
Open

[Bug]: import.meta.resolve behaves differently in Jest and Node #15313

Kaciras opened this issue Sep 19, 2024 · 1 comment

Comments

@Kaciras
Copy link

Kaciras commented Sep 19, 2024

Version

30.0.0-alpha.6

Steps to reproduce

Clone https://github.com/Kaciras/jest-bug-1 and install dependencies.

run

node index.test.js

run:

set NODE_OPTIONS=--experimental-vm-modules
jest

Expected behavior

Both commands should success.

Actual behavior

The command jest fail with error Cannot find module ...

Additional context

No response

Environment

System:
    OS: Windows 11 10.0.22621
    CPU: (12) x64 AMD Ryzen 5 5625U with Radeon Graphics
  Binaries:
    Node: 22.6.0 - D:\Program Files\NodeJS\node.EXE
    npm: 10.8.2 - D:\Program Files\NodeJS\npm.CMD
    pnpm: 9.10.0 - ~\AppData\Roaming\npm\pnpm.CMD
    bun: 1.1.27 - ~\.bun\bin\bun.EXE
  npmPackages:
    jest: ^30.0.0-alpha.6 => 30.0.0-alpha.6
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the Stale label Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant