NestJS Testing Module: Unit vs Integration Tests with Overrides
Learn how Test.createTestingModule builds a real DI graph, when to use overrideProvider at I/O boundaries, and how to structure unit and integration tests in Jest.
13 min read
Tag
Learn how Test.createTestingModule builds a real DI graph, when to use overrideProvider at I/O boundaries, and how to structure unit and integration tests in Jest.
13 min read
Learn when NestJS unit mocks are enough, when to run integration tests against a real test database, and how to set up isolation, lifecycle and CI.
18 min read