-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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]: structuredClone
is not defined
#12628
Comments
PR welcome, change should be around here: https://github.com/facebook/jest/blob/80cf80055682919251b9567ef482755d5f060d47/packages/jest-environment-node/src/index.ts#L89-L92 |
Thanks for the hint, I opened a PR |
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
27.5.1 / v28.0.0-alpha.7
Steps to reproduce
try to use the global
structuredClone
inside a test(https://nodejs.org/api/globals.html#structuredclonevalue-options)
(https://developer.mozilla.org/en-US/docs/Web/API/structuredClone)
Expected behavior
it is defined and works
Actual behavior
global.structuredClone
is not definedAdditional context
Running the same code outside of jest works fine, but somehow jest seems to delete that global?
str.js:
str.test.js:
Environment
The text was updated successfully, but these errors were encountered: