How to test a react component that calls graphiql ? #4150
Replies: 2 comments
-
|
Not sure if this will help you but I was struggling getting a project's tests working too.... jest errors like |
Beta Was this translation helpful? Give feedback.
-
|
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. |
Beta Was this translation helpful? Give feedback.
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,
Beta Was this translation helpful? Give feedback.
All reactions