Skip to content

Data Not Resolving When Running useQuery in a Jest Test Environment #6017

Closed Answered by TkDodo
DovahBrownies asked this question in Q&A
Discussion options

You must be logged in to vote

checkout the repo at the end of my blopost about testing: https://tkdodo.eu/blog/testing-react-query

It has working tests for both components and custom hooks with jest and react-testing-library.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by DovahBrownies
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