mock-gen

Community

Auto-generate test mocks and data factories.

Authorberkcangumusisik
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Automates the creation of mock data factories and API mocks to accelerate testing and ensure consistent fixtures.

Core Features & Use Cases

  • Generate a factory function for a given TypeScript interface or type.
  • Create MSW handlers and realistic mock data that mirror API responses.
  • Organize generated mocks in standard project locations (e.g., src/mocks/ or src/testing/factories/).

Quick Start

Create a mock factory for a type named by your input and generate corresponding MSW handlers with example data.

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: mock-gen
Download link: https://github.com/berkcangumusisik/claude-code-practices/archive/main.zip#mock-gen

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.