What problem does it solve?
This Skill helps you set up, write, run, debug, and optimize TypeScript NestJS E2E/integration tests that depend on real infrastructure so your CI results become consistent instead of flaky or opaque.
Core Features & Use Cases
-
Real infrastructure E2E testing (Docker): Verifies complete user workflows against Kafka, PostgreSQL, MongoDB, and Redis using deterministic orchestration.
-
Given-When-Then test construction (GWT): Ensures every test has clear intent, a single main action, and precise, non-conditional assertions.
-
Flakiness-resistant execution & debugging: Uses smart polling, test isolation patterns, and a “fix one failing test at a time” protocol with temp-file-only logs.
-
Use Case Examples
- You need to write a new
.e2e-spec.ts that validates an endpoint plus side effects in DB and message flows.
- You have failing or flaky tests caused by consumer readiness, async timing, or shared state and need a structured debug plan.
Quick Start
Ask: "Using the typescript-e2e-testing skill, set up and write a new E2E test for the endpoint described by my prompt, following the Given-When-Then pattern and using Docker-backed real infrastructure."