Skip to content

Unit testing a method decorator created using createMethodDecorator #1410

Answered by MichalLytek
ib-tfenright asked this question in Q&A
Discussion options

You must be logged in to vote

TypeGraphQL decorators works inside GraphQL runtime. When you call that resolver methods, it's executed outside the pipeline. So you can't expect next to work as it's a framework initialized function to control execution of middlewares and resolvers.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ib-tfenright
Comment options

Answer selected by ib-tfenright
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