Skip to content
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

Merged
merged 1 commit into from
Dec 11, 2017

Conversation

cpojer
Copy link
Member

@cpojer cpojer commented Dec 11, 2017

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

@codecov-io
Copy link

Codecov Report

Merging #5050 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 34bd3bb...a5efeb8. Read the comment docs.

Copy link
Member

@SimenB SimenB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

@SimenB
Copy link
Member

SimenB commented Dec 11, 2017

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",
Copy link
Member

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".

Copy link
Member Author

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.

@cpojer cpojer merged commit 25ed471 into jestjs:master Dec 11, 2017
@github-actions
Copy link

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.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants