sdcorejs-testing-e2e-nestjs

Community

Write production-grade NestJS E2E tests

Authorsdcorejs
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Ensures NestJS endpoints work correctly end-to-end with real validation, authz/authn, transaction behavior, and database semantics that unit tests often miss.

Core Features & Use Cases

  • Real DB-backed E2E runs: boot the full NestJS app and execute requests with supertest against PostgreSQL using testcontainers (preferred) or pg-mem.
  • Auth + permission flow coverage: validate AuthGuard + HasPermission using an auth fixture and assert 401/403 outcomes per endpoint.
  • Bilingual error shape verification: assert { vi, en } error message payloads for ZodValidationGuard-driven failures (e.g., 422) and confirm domain errors like 409 duplicates.
  • Transaction rollback assertions: prove multi-table write endpoints roll back when a step fails by checking observable state after an induced error.

Quick Start

Run the E2E suite after wiring the endpoint by executing the skill’s guidance for test/setup-e2e.ts and test/jest-e2e.config.js, then invoke npm run test:e2e.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: sdcorejs-testing-e2e-nestjs
Download link: https://github.com/sdcorejs/sdcorejs-agent/archive/main.zip#sdcorejs-testing-e2e-nestjs

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.