Overview of Testing in NestJS
NestJS emphasizes testing to ensure application quality and stability. It primarily uses two types of tests:
- Unit Tests: Verify individual units of code such as functions, methods, or services in isolation.
- Integration Tests (E2E): Evaluate the interaction between different components, including controllers, services, and the database.
Default Tooling:
- Jest: The default testing framework for unit and integration tests.
- Supertest: Recommended for testing HTTP integration endpoints.