Put in order · NestJS course · Module 6: Error Handling and Monitoring
Jest Mocking Syntax
Arrange the syntax for creating a mock repository with jest.fn() from provide to useValue
Items to put in order
- getRepositoryToken(Tribute),
- { provide:
- useValue: { find: jest.fn(), save: jest.fn() } }
You can check the correct answer by solving this task in the CodeWorlds game.