Replies: 1 comment
-
Just test the component that uses those queries :) |
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
-
how to write unit tests for
useUpdateTodo
hook without mockuseGetUserId
I use react-hooks-testing-library,According to the normal usage of renderHook, when invoking the mutation through result.current, it does not wait for the result returned by useGetUserId.
Beta Was this translation helpful? Give feedback.
All reactions