-
-
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
shallow lifecycleExperimental not works in react native #1279
Comments
What version of enzyme are you using? v3 doesn't have |
hi @ljharb My version is |
My react info:
I just realized that there are problems with version 16 alpha of react. This is the reason for the problem I am having |
@jose920405 since react v16 is out, can you try that? |
ok. i'll try and i supose that is necessary use |
Yeah, update my react version to |
hi @ljharb, I'm testing a lot more thoroughly and I can see that The render runs correctly each time, but the componentDidUpdate does not. I'm clear that I'm not doing anything special to try to get this to run, I'm just triggering a
PDTA: |
I am testing and apparently this is a problem related to redux interactions. When I change my redux |
You'd need a react native adapter to use enzyme with React Native. Closing this in favor of #1436. |
Based on this documentation
Example code:
In my test file:
In my component:
I have also tried with
disableLifecycleMethods: false
but either worksThe text was updated successfully, but these errors were encountered: