You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to run my GraphQL queries against a mocked schema, and it runs fine, except for any queries that contain a fragment. For these, I keep getting this error:
Unknown fragment "SomeFragmentName".
My test setup:
I have the transform set in the jest.config.js exactly as described in this project's README.
In my test file, I generate a schema using makeExecutableSchema and addMockFunctionsToSchema.
I try to run my GraphQL queries against a mocked schema, and it runs fine, except for any queries that contain a fragment. For these, I keep getting this error:
Unknown fragment "SomeFragmentName".
My test setup:
transform
set in thejest.config.js
exactly as described in this project's README.makeExecutableSchema
andaddMockFunctionsToSchema
.Maybe I'm overlooking something here, would be grateful for any help!
The text was updated successfully, but these errors were encountered: