-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
mount() fails to render the whole tree on ReactNative #470
Comments
@lelandrichardson would be the best person to address this since he created react-native-mocks, but looking at the source of the render() {
return null;
}, It just renders |
Right, that explains everything. It looks to me that react-native-mocks was not design for this. I'll have to think of a different approach. Thanks a lot @lelandrichardson. |
We made a fork named |
just what I was looking for 👍 |
I'm trying to render an entire tree with
mount()
, but only the first level gets rendered. This happens on React Native using react-native-mocks. I made a small repo just to reproduce the issue: https://github.com/manuelmorales/enzyme-mount-problem/. But here is the gist of it:wrapper.find(Text).length
is returning me zero entries, when it should find one. Andwrapper.debug()
returns the following:While I expected:
Are my expectations correct? Is this a bug?
The text was updated successfully, but these errors were encountered: