NestJS · Middle · Question 40 of 75
What's the difference between unit and e2e tests in a Nest project?
- 1There is no difference
- 2E2e tests run only in the browser
- ✓Correct answer: Unit tests check one class with mocked dependencies; e2e tests boot the app module and send HTTP requests through the whole stack
Explanation
E2e tests catch wiring problems: missing providers, wrong guards or pipes, real validation.