DEV Community

loading...

Discussion on: Unit testing NestJS with mongo in memory...

webeleon profile image
Julien Prugne Author

Oh, that's really not obvious...
I found this trick by mimicking the underlying metod of InjectModel from the nest/mongoose repo.
github.com/nestjs/mongoose/blob/28...