What problem does it solve?
This Skill provides a comprehensive, multi-file guide to testing NestJS projects, aligning teams on a repeatable testing strategy across unit, integration, and E2E levels, and ensuring DI and architectural rules are respected.
Core Features & Use Cases
- Establishes testing foundations, covering test types, layers, and collaboration rules; includes artifact-specific guidance for entities, services, controllers, modules, guards, DTOs, pipes, interceptors, filters, middleware, and strategies; references pitfalls and gotchas to avoid regressions.
- Supplies ready-made patterns, references, and examples to implement and review tests consistently across a NestJS project, using real DBs, real libs, and mock boundaries.
- Enables teams to reproduce production-like conditions in tests by following documented setup patterns, DI rules, and cross-cutting concerns such as authentication, queues, and email integration.
Quick Start
Use this guide to structure tests for NestJS projects, then consult the artifact-specific docs under artifacts/ and the considerations in references/ to implement robust test suites.