-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Tests are failing after upgrading react native from 0.69.6 to 0.71.0 #36440
Comments
|
I am also getting this error on a clean install of the Ignite boilerplate when running jest tests. My react-native version is |
I rollback to the previous LTS node version (18) and the issue was resolved for me. Probably, the cause was in the latest node version (19). Looks like the jest setup file of RN is not compatible with that version |
i can confirm |
That was it! Thank you for saving me banging my head against a wall for the next hour. :) FYI, put something like this in your "node": ">=16.0.0 <18.16.0" Then once React Native supports Node 19+, make sure to update this to reflect the new "max" version of Node. |
I've been able to replicate this with the current node 18 LTS version (18.16.0) switching back to 18.15.0 seems to work for now. |
Fixed: - Theme changes to light mode when registering - CWInfo aligned - Following screen's loading was infinity when follows were at 0 Notes: - Node 18.16.0 (which is 18.x at the commit date) version fails to generate coverage when using Jest in the GitHub Action. Using 18.15.0 version for the moment until another update release, see: facebook/react-native#36440 (comment)
I have the same problem and also found locking down to 18.15 was the fix.
|
Do we have a fix for this issue. This just hit us after upgrading to 18.16.0 |
Had same issue had to lock our Node to 18.15.0, is a pr incoming for this? |
I have this issue too. |
TL;DR: Update Node.js to v18.17.0 or later This was due to a Node.js bug in 18.16.x, fixed in Node.js 18.17.0 (and 19.9.0) by nodejs/node@fb90b6b. See also nodejs/node#47563. With some help from @frankcalise I was able to repro and confirm the fix, so I'm closing the issue. If anyone still sees this problem on latest Node LTS, please open a new issue. |
Description
Hello! After the update I started getting the following errors:
Everything works fine if I comment out the appropriate lines in file
node_modules/react-native/jest/setup.js
:React Native Version
0.71.0
Output of
npx react-native info
Steps to reproduce
Upgrade the RN version
Snack, code example, screenshot, or link to a repository
The text was updated successfully, but these errors were encountered: