NestJS · Middle · Question 41 of 75

In an e2e test, why apply the same global pipes and filters as in main.ts?

Explanation

Registering global pipes and filters as APP_PIPE/APP_FILTER providers inside the module avoids this mismatch.

Further reading

Problem with a question

NestJS · Middle · question 41

Test yourself

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

Take this quiz