create-e2e-tests

Generate end-to-end tests for NestJS applications with Jest and Arrange-Act-Assert.

Updated Nov 23, 2025
One-click install
npx skills add https://github.com/anahelenasilva/meridiano-nestjs --skill create-e2e-tests-anahelenasilva
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-e2e-tests
Source: https://github.com/anahelenasilva/meridiano-nestjs/tree/main/.cursor/skills/create-e2e-tests
Command: npx skills add https://github.com/anahelenasilva/meridiano-nestjs --skill create-e2e-tests-anahelenasilva

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines the creation of end-to-end (E2E) tests, ensuring application stability and catching regressions before they impact users.

Core Features & Use Cases

  • Standardized Test Structure: Follows project conventions for file location and naming.
  • Mocking Strategies: Provides patterns for mocking dependencies and test data.
  • Lifecycle Management: Demonstrates proper setup and teardown for tests.
  • Use Case: When developing a new feature, use this Skill to generate the corresponding E2E tests, ensuring seamless integration and functionality.

Quick Start

Use the create-e2e-tests skill to generate a new E2E test file for the user authentication module.

Frequently Asked Questions about create-e2e-tests

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

FAQPage Schema
How do I generate E2E tests for a NestJS application?

To generate E2E tests for a NestJS application, use this Skill to automatically create test files following established project conventions, covering Jest configuration, mock provider creation, and HTTP request patterns.

What is the best way to structure Jest E2E tests with mocking?

The best way to structure Jest E2E tests is using the Arrange-Act-Assert pattern with proper lifecycle management via beforeAll and beforeEach, alongside mock overriding and JWT token verification for robust validation.

Does this E2E testing approach handle JWT token verification?

Yes, this E2E testing approach handles JWT token verification by generating test setups that include mock provider creation and lifecycle hook management to authenticate and validate HTTP request patterns.

How do I mock dependencies in NestJS end-to-end tests?

You mock dependencies in NestJS end-to-end tests by utilizing the generated mock provider creation and mock overriding patterns, ensuring proper setup and teardown through lifecycle hooks like beforeAll and beforeEach.

Can I use this Skill to test error cases in my NestJS application?

Yes, you can use this Skill to test error cases in your NestJS application, as it generates robust E2E test suites that specifically include validation testing and comprehensive error case handling.