Coding task · NestJS course · Module 7: Testing

Practice: Spy on a service method

Use jest.spyOn() to monitor calls to a service method.

Task

Install a spy on the findAll() method of the legions service