test react query #372
-
How to test react query using mock any examples please share? |
Beta Was this translation helpful? Give feedback.
Answered by
gavinthomas-valtech
Feb 9, 2023
Replies: 2 comments
-
does this help? https://www.js-howto.com/testing-react-query-with-mock-service-worker/ |
Beta Was this translation helpful? Give feedback.
0 replies
-
and https://codesandbox.io/s/react-query-msw-test-forked-mircr9?file=/src/hooks/__tests__/useApi.test.js |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
JSDUNIYA
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
and https://codesandbox.io/s/react-query-msw-test-forked-mircr9?file=/src/hooks/__tests__/useApi.test.js