api-test

Generate unit and integration API tests for REST and GraphQL endpoints.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/gpaura/claude_plugins --skill api-test-gpaura
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-test
Source: https://github.com/gpaura/claude_plugins/tree/main/skills/api-test
Command: npx skills add https://github.com/gpaura/claude_plugins --skill api-test-gpaura

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

API testing is often manual and error-prone. This Skill automates the creation of robust, repeatable tests for REST and GraphQL endpoints, improving coverage and speed.

Core Features & Use Cases

  • Automated Test Generation: Produces unit and integration tests for defined endpoints.
  • Framework Agnostic: Generates tests compatible with Vitest or Jest, using Supertest for HTTP assertions and MSW for mocking.
  • Ready-to-Run Artifacts: Provides runnable test files, mock data, and an npm test script for quick validation.

Quick Start

Use this Skill to generate tests for your API endpoint URL. Review the generated test suite, then run npm test to execute all tests.

Frequently Asked Questions about api-test

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

FAQPage Schema
How do I auto-generate API tests for REST and GraphQL endpoints?

You can auto-generate API tests for REST and GraphQL endpoints by providing your endpoint URL to generate a comprehensive test suite. This produces runnable test files, mock data, and npm scripts for fast QA validation.

Do I need Vitest or Jest to generate API tests with Supertest and MSW?

Yes, you need Vitest or Jest to run the generated API tests, along with Supertest for HTTP assertions and MSW for mocking. These frameworks are required to deliver runnable unit and integration tests in Node.js projects.

What's the best way to automate unit and integration tests for a Node.js API?

The best way to automate unit and integration tests for a Node.js API is using this Skill to generate a ready-to-run test suite. It leverages Supertest and MSW to provide runnable tests and mock data for your endpoints.

Can I use this API test generation for both REST and GraphQL endpoints?

Yes, you can use this API test generation for both REST and GraphQL endpoints. It automatically produces unit and integration tests, mock data, and npm test scripts for your defined endpoints.

How do I run the generated API test suite after creation?

To run the generated API test suite, review the produced test files and mock data, then execute npm test in your terminal. This script runs all generated unit and integration tests for quick validation.