Skip to content

Requests not cleaned up between tests #1758

Closed Answered by todor-a
todor-a asked this question in Q&A
Discussion options

You must be logged in to vote

The problem was that I was using react-query and the first fetch for a vacation was adding the vacation to the cache.

I needed to add queryClient.clear(); to the afterEach.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by todor-a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant