frontend-api-mock-test

Community

MSW v2 API mocking for reliable Axios tests.

AuthorKwondongkyun
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps you reliably test API integrations by providing a complete MSW v2-based mocking setup, including server lifecycle and error scenarios, so tests don't depend on real network calls.

Core Features & Use Cases

  • MSW v2 server setup: Defines handlers and a node-based mock server for API endpoints.
  • API function testing: Demonstrates how to test getMeApi and similar API calls with mock responses.
  • Error scenario validation: Includes network errors, timeouts, and HTTP error status handling to verify client resilience.

Quick Start

Set up an MSW v2 server with handler definitions and run the test suite to mock API responses for Axios.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 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: frontend-api-mock-test
Download link: https://github.com/Kwondongkyun/claude-code-settings/archive/main.zip#frontend-api-mock-test

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.