# Mocks and test fixtures (/testing--test-mock)

/testing--test-mock is a Claude Code skill in the Code section. Creates mocks, stubs, spies, fakes and realistic fixture data for your code's dependencies, following Jest, Vitest, pytest or Go conventions.

- Web version: https://skills.sgomez.dev/en/s/testing--test-mock
- Section: [Code](https://skills.sgomez.dev/en/code.md)
- Author: Santiago Gómez de la Torre
- License: MIT
- Source: https://github.com/sgomez-dev/claude-skills/blob/main/skills/testing/test-mock.md
- Updated 26 Mar 2026

## How to ask for it

- `/testing--test-mock create a mock of this external service for tests`
- `/testing--test-mock generate fixtures for test users`
- `/testing--test-mock I need a stub for this payments API call`

## Install

macOS · Linux:

```
curl -fsSL https://raw.githubusercontent.com/sgomez-dev/claude-skills/main/install.sh | bash
```

Windows:

```
irm https://raw.githubusercontent.com/sgomez-dev/claude-skills/main/install.ps1 | iex
```

Claude Code plugin:

```
/plugin marketplace add sgomez-dev/claude-skills
/plugin install testing-skills@claude-skills-collection
```

## Permissions

- Reads: `**/*`
- Writes: `**/*.test.*`, `**/__mocks__/**`
- Runs: —
- Network: No
- Destructive: No

## Author's description

Generate mocks, stubs, and fixtures for testing

- [How we review this](https://skills.sgomez.dev/en/methodology.md)
