Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

GraphQLTest: No Root resolvers for mutation/query type when running unit test #416

Answered by oliemansm
AndreKunitz asked this question in Q&A
Discussion options

You must be logged in to vote

Have you tried adding @ComponentScan("me.github.andrekunitz.issueexemple") to your test classes when packaged by feature? There's a @ComponentScan without specifying any packages on the @GraphQLTest annotation, which might result in it scanning only the package that test class is defined in, instead of the root package.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by oliemansm
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #416 on December 20, 2020 11:28.