Skip to content
Discussion options

You must be logged in to vote

my recommendation is to always mock / inspect the network layer and just test if your app behaves correctly. If the network call isn't made with the correct input, your app will hopefully behave differently.

https://tkdodo.eu/blog/testing-react-query

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@binhtran04
Comment options

Answer selected by binhtran04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants