Docs
/
Node Express
Chapter 16
16 — Testing
Core Concepts
- Vitest — fast test runner, Jest-compatible API
- supertest — HTTP assertion library for Express apps
- Unit tests — test individual functions/modules in isolation
- Integration tests — test routes with real middleware pipeline
- Mocking — replace dependencies with controlled implementations
- Test fixtures — reusable test data factories