Replies: 2 comments 2 replies
-
Based on what you're trying to do, |
Beta Was this translation helpful? Give feedback.
0 replies
-
have you turned off here is my take on testing react-query custom hooks and components: https://tkdodo.eu/blog/testing-react-query |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm trying to trigger
onError
inuseQuery
by mocking theaxios.get
withPromise.reject
, butonError
never triggered.Trying to understand if there is any bug or something wrong with the code?
My
useQuery
function that is called in the test:Is there any problem to mock the
axios.get
? or it's a problem withreact-query
?Beta Was this translation helpful? Give feedback.
All reactions