-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Closed
Labels
Description
π Bug Report
After upgrading Node.js 15.8 β 15.9 jest@next stopped supporting ESM.
I created an issue in Node.js repo as well nodejs/node#37426
To Reproduce
echo '{ "private": true, "type": "module" }' > package.json
yarn add nanoevents
echo "import { createNanoEvents } from 'nanoevents'" > index.js
echo "import './index.js'; it.todo('test')" > index.test.js
yarn add jest@next
volta install [email protected]
node --experimental-vm-modules node_modules/.bin/jest
(node:60418) ExperimentalWarning: VM Modules is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
FAIL ./index.test.js
β Test suite failed to run
linking error, dependency promises must be resolved on instantiateExpected behavior
volta install [email protected]
node --experimental-vm-modules node_modules/.bin/jest
(node:60479) ExperimentalWarning: VM Modules is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
PASS ./index.test.js
β todo test
Test Suites: 1 passed, 1 total
Tests: 1 todo, 1 total
Snapshots: 0 total
Time: 0.173 s
Ran all test suites.
envinfo
System:
OS: Linux 5.10 Fedora 33 (Workstation Edition) 33 (Workstation Edition)
CPU: (8) x64 Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz
Binaries:
Node: 15.8.0 - ~/.volta/tools/image/node/15.8.0/bin/node
Yarn: 1.22.10 - ~/.volta/tools/image/yarn/1.22.10/bin/yarn
npm: 7.5.1 - ~/.volta/tools/image/node/15.8.0/bin/npm
npmPackages:
jest: ^27.0.0-next.2 => 27.0.0-next.2
euaaaio and ahnpnl