testing
Installation
SKILL.md
NestJS Testing
When to Use This Skill
Use this skill when:
- Writing unit tests for services, controllers, or providers
- Testing modules with
Test.createTestingModule() - Mocking dependencies for isolated testing
- Writing end-to-end (E2E) tests for API endpoints
- Testing guards, interceptors, pipes, or filters
- Setting up test fixtures and test data
- Testing async operations and database interactions
- Implementing test coverage for NestJS applications
- Testing error handling and edge cases
What is Testing in NestJS?
NestJS provides built-in testing utilities that make it easy to write both unit and integration tests. The framework uses Jest as the default testing framework and provides specialized utilities for creating isolated testing modules.