Replies: 1 comment
-
Hi @stephyswe, Sorry for the late reply. Does the document that you provide to your |
Beta Was this translation helpful? Give feedback.
0 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.
-
Hi, I'm using Next / React. A Javascript Framework.
I love how useful the generated hooks are... is it possible to test them with jest?
I tried implement a version with MockedProvider... code below. And trying to see if I get data back.
// component
running yarn test I sadly get.
Is there a way to test the "use-" hooks?
Edit:
I also made sure its just the "hook" that is the issue. I only swapped the "useFindManyRestaurantsQuery" to regular GraphQL with useQuery. And it return the data fine.
Beta Was this translation helpful? Give feedback.
All reactions