Closed nircohLudeo closed 4 months ago
@nircohLudeo please check this project first https://github.com/hardyscc/aws-nestjs-starter, which contains 100% code coverage test case https://sonarcloud.io/component_measures?id=hardyscc_aws-nestjs-starter&metric=coverage&view=list
@nircohLudeo please check this project first https://github.com/hardyscc/aws-nestjs-starter, which contains 100% code coverage test case https://sonarcloud.io/component_measures?id=hardyscc_aws-nestjs-starter&metric=coverage&view=list
Sorry for the inconvenience, I figured out all I had to do was provide a mock using the name of the model service. In the example project you described I couldn't find a test for the notification.service but I have already managed. Sorry again!
I'm using this library and trying to mock the provider injected by using @InjectModel("...") but I'm not sure how I should do it.
Current behavior
No real way to mock the provided models
Expected behavior
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
Environment