Repository navigation
Replies: 2 comments 2 replies
|
Based on what you're trying to do, |
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 |
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
onErrorinuseQueryby mocking theaxios.getwithPromise.reject, butonErrornever triggered.Trying to understand if there is any bug or something wrong with the code?
My
useQueryfunction that is called in the test:Is there any problem to mock the
axios.get? or it's a problem withreact-query?All reactions