typescript-e2e-testing

Set up and write E2E tests for TypeScript/NestJS apps with Docker Compose.

14|3|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/bmad-labs/skills --skill typescript-e2e-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript-e2e-testing
Source: https://github.com/bmad-labs/skills/tree/main/skills/typescript-e2e-testing
Command: npx skills add https://github.com/bmad-labs/skills --skill typescript-e2e-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance and tools for setting up, writing, reviewing, running, debugging, and optimizing end-to-end (E2E) and integration tests for TypeScript/NestJS projects. It focuses on using real infrastructure via Docker and adhering to the Given-When-Then (GWT) pattern.

Core Features & Use Cases

  • Setup: Configure E2E testing infrastructure, including Docker Compose for services like Kafka, PostgreSQL, MongoDB, and Redis. Create Jest configurations and test helpers.
  • Writing Tests: Develop E2E tests using the GWT pattern, testing API endpoints, workflows, and event-driven scenarios with real dependencies.
  • Debugging: Systematically fix failing or flaky tests, troubleshoot connection issues, and diagnose race conditions.
  • Optimization: Improve test performance, reduce execution time, and optimize Docker startup.
  • Use Case: A developer needs to set up E2E tests for a new NestJS microservice that interacts with PostgreSQL and Kafka. They can use this Skill to configure docker-compose.e2e.yml, create jest-e2e.config.ts, write GWT-style tests for API endpoints, and debug any failures.

Quick Start

Use the typescript-e2e-testing skill to write an E2E test for the user creation API endpoint.

Frequently Asked Questions about typescript-e2e-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up E2E testing for a NestJS application with Kafka and PostgreSQL?

To set up E2E testing for a NestJS application, configure Docker Compose to provision real Kafka and PostgreSQL containers, create a Jest configuration file, and write test helpers to manage connections and ensure test isolation.

What is the Given-When-Then pattern in TypeScript E2E tests?

The Given-When-Then (GWT) pattern in TypeScript E2E tests structures test cases into setup (Given), action (When), and assertion (Then) phases to clearly test API endpoints, workflows, and event-driven scenarios with real dependencies.

Why are my NestJS integration tests flaky when using Docker?

NestJS integration tests using Docker are often flaky due to race conditions or connection issues during Docker startup. You can systematically debug these failures by troubleshooting connections, diagnosing race conditions, and optimizing Docker startup performance.

Can I use Jest for event-driven E2E testing in TypeScript microservices?

Yes, you can use Jest for event-driven E2E testing in TypeScript microservices by configuring it to interact with real infrastructure like Kafka, allowing you to test event workflows and API endpoints using the Given-When-Then pattern.

What's the best way to optimize Docker startup for TypeScript E2E test suites?

The best way to optimize Docker startup for TypeScript E2E test suites is to apply targeted optimization strategies that reduce execution time and improve test performance by streamlining the initialization of Kafka, PostgreSQL, MongoDB, and Redis containers.