This repository was archived by the owner on Dec 19, 2023. It is now read-only.
How to run tests within a specific context? #901
Unanswered
arquadrado
asked this question in
Q&A
Replies: 0 comments
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.
-
I am trying to write tests some for my resolvers but I am having problems running them. I have three packages that have associated graphql schemas within my application but I am just trying to test the resolvers from each one independently. I have this test configuration:
I am pointing my test configuration to the feature package I want to test but when I try to run it, it fetches the schemas for the other features as well. I put breakpoints in the global configuration where the schema paths are defined but with the test configuration it's not getting there and I don't understand why the it loads all features' schemas.
I get this error:
No method or field found as defined in schema <unknown>:189 with any of the following signatures (with or without one of [interface graphql.schema.DataFetchingEnvironment] as the last argument), in priority order
where it's trying to build a method for a schema that should not be loaded.
How can I limit where the test looks for graphql schemas?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions