sdcorejs-testing-e2e-nestjs
CommunityWrite production-grade NestJS E2E tests
Software Engineering#e2e testing#testcontainers#nestjs#supertest#postgres#transaction rollback#bilingual errors
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
supertestagainst PostgreSQL usingtestcontainers(preferred) orpg-mem. - Auth + permission flow coverage: validate
AuthGuard+HasPermissionusing an auth fixture and assert 401/403 outcomes per endpoint. - Bilingual error shape verification: assert
{ vi, en }error message payloads forZodValidationGuard-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 requiredComponents
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.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.