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
Enzyme mount(): TypeError: Cannot read property 'rendered' of null #1217
Comments
Happens without react-native as well |
I create a super basic test repo that shows this failing https://github.com/eddiemonge/enzyme-3-simple-test |
Ran into this issue and did some debugging myself. Enzyme relies on the |
Sounds like we need to up the peer dep on the react 16 adapter to a later version; @michaelgmcd, do you know which exact react 16 version added that property? |
I've only briefly looked into this, but it looks like this commit made the change and it was released in react 16.0.0-rc.1 according to this release candidate issue |
ok - we should lift the peer dep to that. |
Is anyone else getting this error when trying to launch Enzyme setupTests.js: TypeError: Cannot read property 'ReactCurrentOwner' of undefined |
@patrickford I got that error when I was using this adapter but was actually still pulling in React 15.X instead of 16.X |
Make sure that you have |
This seems closeable; please file a new issue if there's still problems. |
Similar problem as #1195
This is possibly a problem with https://github.com/Root-App/react-native-mock-renderMy versions:
My test-code which produces the problem:
https://gist.github.com/Keksike/8afd4787f80c08e4e6d36c24a7886510
The text was updated successfully, but these errors were encountered: