api-mock-server

Create configurable mock API servers with MSW, json-server, or custom handlers.

5|Updated Dec 31, 2025
One-click install
npx skills add https://github.com/patricio0312rev/skillset --skill api-mock-server-patricio0312rev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-mock-server
Source: https://github.com/patricio0312rev/skillset/tree/main/templates/testing/api-mock-server
Command: npx skills add https://github.com/patricio0312rev/skillset --skill api-mock-server-patricio0312rev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Create realistic mock APIs for testing and development.

Core Features & Use Cases

  • MSW, json-server, and custom handlers to simulate API behavior across environments
  • Fixtures, scenarios, and test integration to ensure reliable, repeatable responses
  • Comprehensive guidance for browser and server-side testing and end-to-end workflows

Quick Start

Run the API Mock Server to start a configurable mock API environment for your tests.

Frequently Asked Questions about api-mock-server

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

FAQPage Schema
How do I spin up a mock API for frontend testing?

To spin up a mock API for frontend testing, this Skill provides configurable MSW and json-server environments with fixtures and handlers to ensure reliable, repeatable responses during development.

Can I simulate different API scenarios for integration testing?

Yes, you can simulate different API scenarios for integration testing. The Skill implements configurable fixtures and scenarios to test varied API behaviors dynamically across your integration workflows.

Does MSW work with Playwright for end-to-end testing?

Yes, MSW works with Playwright for end-to-end testing. The Skill provides comprehensive integration guidance for using MSW within browser and Playwright environments to simulate API behavior accurately.

What is the best way to mock GraphQL APIs during development?

The best way to mock GraphQL APIs during development is using custom handlers. This Skill provides optional GraphQL support alongside MSW and json-server configurations to simulate complex API behavior.

How do I mock API responses for backend testing workflows?

To mock API responses for backend testing workflows, this Skill applies custom handlers and json-server configurations to simulate server-side API behavior, ensuring repeatable responses across your backend unit and integration tests.