-
-
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]: Cannot assign to read only property 'performance' of object '[object global]'
on Node 20
#14741
Comments
As noted in the Bug Report template, all bug reports requires a minimal reproduction. Please open up a new issue providing one. Read more at https://stackoverflow.com/help/minimal-reproducible-example. |
I'm having the same issue and I've found this related issue on Node.js: nodejs/node#51048 It seems latest 18 have this issue as well. |
That's a link to this very issue. But again, please put together a reproduction. "+1" doesn't really help us |
Sorry my mistake. I have updated the link. |
I have created a reproducible repo here: https://github.com/satazor/jest-issue-14741. The issue only happens in Jest v28 and not in the latest v29. |
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. |
v28 is unsupported. However, you should be able to use v29 test env in v28 to work around the issue if you're unable to upgrade. |
Version
29.7.0
Steps to reproduce
jest.useFakeTimers
Expected behavior
Jest runs the test and mock the timers and I can set my own time
Actual behavior
Test fails with
Additional context
On Node 18 is OK, upgrading to Node 20 causes issues both locally and on CI
Related to: facebook/react-native#35701
Environment
The text was updated successfully, but these errors were encountered: