Repository navigation
How to test a react component that calls graphiql ? #4150
Unanswered
cperotAxway
asked this question in
Q&A / Support
Replies: 2 comments
|
Not sure if this will help you but I was struggling getting a project's tests working too.... jest errors like |
0 replies
|
Not sure if this is the right path, but I’ve seen similar tests fail due to missing mock configurations. Check if GraphiQL exports correctly with jest, and ensure your component exports the right shapes. If not, double-check the GraphQL schema and avoid relying solely on jest’s strict expectations. It’s a common pitfall when scaling. |
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.
Hi,
I designed a react component that calls GraphiQL component. I would like to add now a test with jest but I'm facing some issues of how to configure it. Can you please give me some tips / examples ?
Regards,
All reactions