testing-with-api-mocks

Official

Auto-mocks and fixtures for reliable API tests.

Authorstacklok
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill provides a unified approach to API testing by automating mock generation and fixture management, reducing boilerplate and flakiness in tests.

Core Features & Use Cases

  • Auto-generation of mocks for API endpoints based on OpenAPI schemas.
  • Structured fixtures organized by endpoint paths and HTTP methods.
  • Test-scoped overrides to customize responses for specific tests.

Quick Start

Use the testing-with-api-mocks skill to start writing tests that rely on generated mocks and fixtures. The quick start example shows how to import fixtures and mock wrappers into your test file and run a basic test that asserts data renders from a mocked endpoint.

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: testing-with-api-mocks
Download link: https://github.com/stacklok/toolhive-studio/archive/main.zip#testing-with-api-mocks

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 223,000+ vetted skills library on demand.