create-e2e-test

Generate standardized end-to-end test files for NestJS modules with PostgreSQL.

547|153|Updated Jul 14, 2021
One-click install
npx skills add https://github.com/mx-space/core --skill create-e2e-test-mx-space
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-e2e-test
Source: https://github.com/mx-space/core/tree/main/.claude/skills/create-e2e-test
Command: npx skills add https://github.com/mx-space/core --skill create-e2e-test-mx-space

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill simplifies the creation of end-to-end test files for modules, reducing manual setup time and ensuring consistent testing practices.

Core Features & Use Cases

  • Test File Generation: Automatically generates standardized test templates for controllers, services, and repositories.
  • E2E Environment Setup: Facilitates quick setup of full HTTP pipeline tests with mock or real databases.
  • Use Case: A developer adding a new module can generate structured test files to validate their code against real or mocked environments efficiently.

Quick Start

Use the create-e2e-test skill to generate a test file for the specified module by providing the module name as an argument.

Frequently Asked Questions about create-e2e-test

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

FAQPage Schema
How do I generate e2e tests for a NestJS module automatically?

To generate e2e tests for a NestJS module automatically, provide the module name as an argument to trigger test file creation. This action produces standardized test templates for controllers, services, and repositories without manual setup effort.

What is the best way to set up repository tests with real PostgreSQL in NestJS?

The best way to set up repository tests with real PostgreSQL in NestJS is using automated test generation that supports real database testing scenarios. This ensures test reliability by validating your code against actual database environments efficiently.

Does this e2e testing setup support mock databases or only real PostgreSQL?

This e2e testing setup supports both mock databases and real PostgreSQL environments. You can generate structured test files to validate your NestJS modules against either mocked environments or real database testing scenarios based on your needs.

How do I create a full HTTP pipeline test for a NestJS application?

To create a full HTTP pipeline test for a NestJS application, use automated e2e environment setup to generate the necessary test files. This facilitates quick setup of comprehensive HTTP pipeline tests for your modules with standardized templates.

Why do I need standardized test structures for NestJS modules?

You need standardized test structures for NestJS modules to ensure consistent testing practices across your application. Automated generation reduces manual setup time and ensures that unit tests, e2e tests, and repository tests maintain a reliable and uniform structure.