Closed untemps closed 6 years ago
I'm running in the same issue. Is it an expected behavior? If it is, for instance, it means that I can't use find('TextInput')
:-1:
@untemps Ey man, I have created a pull request to fix it! #39
Hi all, thanks for posting this issue! You should be able to work around this in the short term by finding components by their testID
.
I'm happy to help get code changes merged to help address this issue as well. @dabit1, I can reopen that PR for you if you update it to resolve the errors that @mbutsko pointed out.
In my unit tests, I used to render the components using the Enzyme shallow() function. The output printed by debug() looked like a regular tree component:
Using react-native-mock-render and jsdom, the tree nodes are not named anymore:
Is it intentional and how can I retrieve each node using the find() function in this case?