Error in experimental-vm-modules , got SyntaxError: The requested module '@jest/globals' does not provide an export named 'default'
jaredhan418 opened this issue · comments
jaredhan commented
@testing-library/jest-dom
version: 6.1.2node
version: 18.16npm
(oryarn
) version: 9.5.1
Relevant code or config:
// testing.setup.ts
import "@testing-library/jest-dom/jest-globals";
What you did:
I am running jest test by pure ESM mode, and setup jest.config.js by tutorial.
node --experimental-vm-modules node_modules/jest/bin/jest.js
All the things works good until upgrade to version 6.1.2
What happened:
I got jest import error
SyntaxError: The requested module '@jest/globals' does not provide an export named 'default'
at Runtime.linkAndEvaluateModule (node_modules/jest-runtime/build/index.js:708:5)
Reproduction:
just when jest-globals.msj
start to import globals from '@jest/globals';
jest will throw error
Problem description:
Suggested solution:
github-actions commented
🎉 This issue has been resolved in version 6.1.3 🎉
The release is available on:
Your semantic-release bot 📦🚀