-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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]: CommonJS / ESM modules issue #14881
Comments
I think this is a bug with yarn v1 - at least that was the issue at work. Upgrading to yarn v3 or v4 fixed it. Either way, not a bug in Jest - fix would have to be further upstream (e.g. |
Seems to be related to; yargs/cliui#138 |
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. |
Version
29.7.0
Steps to reproduce
Dev dependencies:
"@testing-library/jest-dom": "^6.4.1",
"@testing-library/react": "^14.2.1",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
Run
jest --passWithNoTests
Expected behavior
Runs actual tests
Actual behavior
Throw the following exception:
Additional context
Might be related as they face the same issue with the dependency string-width
isaacs/jackspeak#5
https://stackoverflow.com/questions/77186044/error-require-of-es-module-when-trying-to-run-a-node-container
TSConfig;
Environment
The text was updated successfully, but these errors were encountered: