nestjs-testing
Installation
SKILL.md
NestJS Testing
Write NestJS tests following Sellernote's 3-layer architecture and convention documents.
Convention Loading
Before starting any work, Read the relevant reference files from references/ within this skill directory:
-
Always read first (core rules):
references/BACKEND_CONVENTION.md- 3-layer architecture, DTO/Entity naming, test strategy, test pyramid, anti-patternsreferences/NESTJS_CONVENTION.md- Project structure, DI patterns, module config, Domain Model Interface, money handling, DTO validation with@sellernote/sellernote-nestjs-api-property, exception handling
-
Read when relevant:
references/BACKEND_ARCHITECTURE_CONVENTION.md- Layer responsibility matrix (what each layer may/must not do), repository allowed/prohibited patterns, monorepo dependency direction, anti-patterns (Fat Repository, Anemic Service)references/COMMON_CONVENTION.md- Naming conventions, error code format ({DOMAIN}_{CATEGORY}_{DETAIL}), error response format, loggingreferences/TYPESCRIPT_CONVENTION.md- Type system, import ordering, enum/union conventions, anti-patterns