Replies: 1 comment
-
Hello @szkieb! The test looks fine, I can't tell what could be wrong here without a reproducible demo. If you do a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I really could use help setting up a test for my LoginScreen. My goal is to test the screen not just the login button (and many more screens once that works) . But setting up the wrapper turns out to be quite the challenge.
I managed to get the redux provider to work, I quieted an annoying redux persistor error, and now after adding the navigation my test fails to find the login button on my login screen.
FYI I also have a tab navigator and I plan to extract the wrapper for repeated use in a test-util file but I reckon that is not relevant for the problem at hand.
Here's my test
LoginScreen.test.ts
My App.tsx returns the following elements
And my RootNavigator return this
Beta Was this translation helpful? Give feedback.
All reactions