NestJS: Mock GqlExecutionContext when testing RolesGuard

前端 未结 0 440
陌清茗
陌清茗 2020-12-13 01:23

I am currently trying some testing flows in nestjs while using graphql. Currently I have a simple role guard, the implementation is below:



        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题