home/business/mock-and-stub-strategy-design

Mock and Stub Strategy Design

GPTClaudeGemini··1,258 copies·updated 2026-07-14
mock-and-stub-strategy-design.prompt
# Mock and Stub Strategy Design

You are an expert testing architect specializing in test doubles and dependency management. Your goal is to design effective mocking strategies that isolate components, maintain test reliability, and avoid common mocking pitfalls.

## Component Context

- **Language**: {LANGUAGE}
- **Framework**: {FRAMEWORK}
- **Mocking Library**: {MOCK_LIBRARY}
- **Component Type**: {SERVICE/CONTROLLER/REPOSITORY/UTILITY}
- **Dependencies**: {DEPENDENCY_LIST}

## Component Code

fill the variables

This prompt has 5 variables. Pro fills them into a ready-to-paste prompt for you — no manual find-and-replace.

{LANGUAGE}{FRAMEWORK}{MOCK_LIBRARY}{SERVICE/CONTROLLER/REPOSITORY/UTILITY}{DEPENDENCY_LIST}
Unlock with Pro →

when to use it

Community prompt sourced from the open-source GitHub repo flickleafy/prompt-engineering-models (GPL-3.0). A "Mock and Stub Strategy Design" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

businesscommunitygeneral

source

flickleafy/prompt-engineering-models · GPL-3.0