·mocking-stubbing
</>

mocking-stubbing

aj-geddes/useful-ai-prompts

Create and manage mocks, stubs, spies, and test doubles for isolating unit tests from external dependencies. Use for mock, stub, spy, test double, Mockito, Jest mocks, and dependency isolation.

64Installs·0Trend·@aj-geddes

Installation

$npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill mocking-stubbing

SKILL.md

Mocking and stubbing are essential techniques for isolating units of code during testing by replacing dependencies with controlled test doubles. This enables fast, reliable, and focused unit tests that don't depend on external systems like databases, APIs, or file systems.

See also: integration-testing, test-data-generation, test-automation-framework for complete testing patterns.

Create and manage mocks, stubs, spies, and test doubles for isolating unit tests from external dependencies. Use for mock, stub, spy, test double, Mockito, Jest mocks, and dependency isolation. Source: aj-geddes/useful-ai-prompts.

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill mocking-stubbing Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor

View raw

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill mocking-stubbing
Category
</>Dev Tools
Verified
First Seen
2026-02-01
Updated
2026-02-18

Quick answers

What is mocking-stubbing?

Create and manage mocks, stubs, spies, and test doubles for isolating unit tests from external dependencies. Use for mock, stub, spy, test double, Mockito, Jest mocks, and dependency isolation. Source: aj-geddes/useful-ai-prompts.

How do I install mocking-stubbing?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill mocking-stubbing Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor

Where is the source repository?

https://github.com/aj-geddes/useful-ai-prompts