Trouble testing custom resolvers fields #402
Unanswered
sargentieri
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
-
I am trying to write an integration test for one of the generated models that I added a
@FieldResolver
.I keep getting this error in reference to an argument type, and a registered enum.
The error is this:
What am I missing when trying to mock the graphql server? I'm trying to mock
graphql
from the graphql package. Not sure if anyone out there has setup testing withtypegraphql-prisma
, but I seem to be having quite the problems setting up anything besides unit test on the functions used in custom resolvers.For the record I am using vitest, apollo server 4, and of course typegraphql, typegraphql-prisma.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions