-
-
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
Make Jest work with latest react-native on node 9. #5050
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5050 +/- ##
=======================================
Coverage 60.74% 60.74%
=======================================
Files 198 198
Lines 6605 6605
Branches 4 4
=======================================
Hits 4012 4012
Misses 2593 2593 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
Is this the same issue as nodejs/node#17040? So he just has to upgrade to react 16? |
@@ -6,8 +6,8 @@ | |||
"test": "jest" | |||
}, | |||
"dependencies": { | |||
"react": "15.4.2", | |||
"react-native": "^0.40.0" | |||
"react": "16.2.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get a peer dep warning when installing, is that ok?
warning " > react-native@0.51.0" has incorrect peer dependency "react@16.0.0".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works, so I'm fine with it.
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
Turns out we were still using RN 0.4 and React 15. I upgrade those + update the snapshots for the RN repo. The downside is that it now uses
RTCScrollView
to render. This is an RN thing and not a Jest thing and we can fix it later.Test plan
On Node.js 9, Jest will pass the RN test