How to mock/handle refetch in jest? #1347
Unanswered
shapeshifta78
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Not sure how rigid your requirements are for refetching in the event handler, but you could just invalidate the query in the handler then let your component-level |
Beta Was this translation helpful? Give feedback.
3 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.
Uh oh!
There was an error while loading. Please reload this page.
-
What is the proper way to handle the refetch of queries in jest? E.g. we define a query via usequery and trigger a refetch in an eventhandler with new parameters. How would I mock that in this case so the test in jest gets the new data?
Beta Was this translation helpful? Give feedback.
All reactions