-
Version Numberlatest Codesandbox/Expo snackSteps to reproduceGo to tests and run test.
Expected behaviourNo show warning What browsers are you seeing the problem on?No response Relevant log outputNo response Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
https://react-hook-form.com/advanced-usage#TransformandParse |
Beta Was this translation helpful? Give feedback.
-
solution: await waitFor(() => expect(screen.queryByText(/Loading/i)).not.toBeInTheDocument()); |
Beta Was this translation helpful? Give feedback.
-
I've the same issue in React Native Example:
Why that unit test results on:
|
Beta Was this translation helpful? Give feedback.
-
For the use case I had, I was writing some tests like this:
To resolve, what I did was: In the component:
In the test:
|
Beta Was this translation helpful? Give feedback.
solution: await waitFor(() => expect(screen.queryByText(/Loading/i)).not.toBeInTheDocument());
In component, I use isSubmitting, which show me Loading