Coding task · NestJS course · Module 7: Testing

Practice: Testing Promise reject

Write a test verifying that an asynchronous method throws an exception.

Task

Test the scenario where the service throws a NotFoundException