How do I mock Mongoose's “lean()” query with Jest and NestJS?

后端 未结 0 804
终归单人心
终归单人心 2020-12-23 00:38

I have a Person entity with its own Repository class, which I want to test. This repository class injects the Mongoose model as suggested in the docs of NestJS, like so:

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