Coding task · NestJS course · Module 7: Testing

Practice: Mocking dependencies

Create mocks for external services in a unit test.

Task

Mock the database repository using jest.fn()