-
-
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
Invariant Violation: Native module cannot be null.
with "preset": "react-native",
#2382
Comments
Did they fail because of the react or because of the Jest update? |
Looks like jest. That stuff in there with globals and rootDir made no difference, still failing. |
Have you tried using |
Yes, just did:
|
Did a full wipe of node_modules, install and test with this package.json:
Same result. |
Are you sure your tests works on Jest 17? |
Did you downgrade RN at the same time? I think that may be where the problem lies:
All tests pass. Do the same with
So, should I close this and open it on RN? |
Nope, no changes besides Jest. I think RN repo will be a better place to tackle this. Thanks! |
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. |
Repo: https://github.com/jcollum/kishar-nine/tree/05-testing
Related (closed) #2208
The test is pretty simple:
Steps to reproduce:
The tests work on the
00
branch but since upgrading react and jest they fail and in a very cryptic way. They don't appear to be actually running.The text was updated successfully, but these errors were encountered: