CodeZettaInterview Hub

NestJS · Testing · Mid-Level · Best Practice

e2e testing Nest HTTP apps — approach?

Short Interview Answer

supertest against a full AppModule (or test module), real or testcontainers DB, and cleanup between tests.

Detailed Explanation

Prefer deterministic seeds. Test auth flows. Separate from unit suite in CI timing.

Did you know this answer?