api-tests
OfficialNestJS API e2e tests
Authorcromesdk
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill streamlines the creation, maintenance, and repair of end-to-end (e2e) tests for NestJS APIs, ensuring robust and reliable application behavior.
Core Features & Use Cases
- Deterministic Test Generation: Creates or updates e2e tests using the project's existing runner (Vitest/Jest) and Supertest.
- Auth Scenario Coverage: Automatically detects and includes JWT authentication scenarios, including login, protected routes, and invalid token handling.
- Bootstrap Parity: Ensures tests mirror the production application's bootstrap behavior for accurate validation and status code assertions.
- Use Case: When a developer needs to add new e2e tests for a recently implemented API endpoint, fix failing tests before a release, or ensure authentication flows are correctly covered.
Quick Start
Implement or update NestJS API end-to-end tests by reusing the repository's existing e2e runner and conventions, mirroring src/main.ts bootstrap behavior in tests, detecting whether JWT auth is configured, adding login/protected-route/invalid-token scenarios when auth exists, and verifying with the repository e2e test command before finalizing.
Dependency Matrix
Required Modules
None requiredComponents
scriptsreferences
💻 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: api-tests Download link: https://github.com/cromesdk/ai-skills/archive/main.zip#api-tests 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 223,000+ vetted skills library on demand.