-
-
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]: Jest 28 with jest-environment-jsdom
use browser’s version of Nano ID but does not have crypto
polyfill
#12947
Comments
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. |
JSDOM provides all APIs, not Jest itself, so this issue should go there (see discussion in uuidjs/uuid#616). That said, JSDOM implements |
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
28
Steps to reproduce
Jest config:
Add to any test:
Expected behavior
package.exports.browser
in resolver)crypto
polyfill injest-environment-jsdom
Actual behavior
Error:
Additional context
Nano ID has in it’s
package.json
:Seems like
jest-environment-jsdom
is changing the resolver to useexports.*.browser
but do not provide true browser environment to make it safe.Environment
The text was updated successfully, but these errors were encountered: