What problem does it solve?
This Skill solves the challenge of writing high-quality, maintainable tests in NestJS projects, ensuring adherence to Clean Architecture and DDD principles while achieving mandatory code coverage. It eliminates the guesswork and manual effort in applying complex testing patterns.
Core Features & Use Cases
- Automated Test Generation & Refactoring: Creates new unit, integration, and E2E tests or refactors existing ones following best practices.
- Advanced Testing Patterns: Implements patterns like Fake Builders, Spy on Repository Methods, and
test.each for comprehensive scenario coverage.
- Optimized Test Environment: Configures Jest with SWC for speed, custom matchers, and helpers for database lifecycle management.
- Use Case: When you're building a new feature in NestJS, activate this Skill to automatically generate a full suite of tests for your domain entities, application use cases, and API endpoints, ensuring 80% coverage and architectural compliance from the start.
Quick Start
Use the "NestJS + Jest Testing Excellence" skill to generate unit tests for the ProductService module, ensuring 80% code coverage and using in-memory repositories.