Coding task · NestJS course · Module 7: Testing

Practice: Test with database mock

Mock the repository and test a CRUD method of the service.

Task

Write a test for the create() method with a mocked repository.save()