Генерация E2E и unit-тестов для NestJS модулей

testing

create-e2e-test is a Claude Code skill that generates test files for a specified module in MX Space, taking the module name as an argument. It covers three testing patterns: unit tests with mocked dependencies using `@nestjs/testing` and Vitest, E2E tests that exercise controllers through a full HTTP pipeline via the `createE2EApp` helper, and repository integration tests against a real PostgreSQL instance. The `createE2EApp` utility replaces `AuthGuard` with `AuthTestingGuard` (authenticate by passing `'test-token': 1`), registers standard interceptors and a Zod validation pipe, and spins up a Fastify-based Nest app that closes automatically in `afterAll`. Output files land in `apps/core/test/src/modules/<module-name>/`, split between controller and repository specs. Ideal for NestJS backend developers who need immediate test coverage for a new module.