NestJS · Senior · Question 37 of 75

How do you test that guards, pipes and filters are wired correctly for a route?

Explanation

Unit tests of a controller method skip the enhancers, so wiring bugs only show up in HTTP-level tests.

Further reading

Problem with a question

NestJS · Senior · question 37

Test yourself

Take the NestJS · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz