testing-tdd-london-mock-management
Sub-skill of testing-tdd-london: Mock Management (+2).
Best use case
testing-tdd-london-mock-management is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Sub-skill of testing-tdd-london: Mock Management (+2).
Teams using testing-tdd-london-mock-management should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/mock-management/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How testing-tdd-london-mock-management Compares
| Feature / Agent | testing-tdd-london-mock-management | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Sub-skill of testing-tdd-london: Mock Management (+2).
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Mock Management (+2)
## Mock Management
- Keep mocks simple and focused on single behavior
- Verify interactions, not implementation details
- Use `jest.fn()` for behavior verification
- Avoid over-mocking internal details
- Reset mocks between tests
## Contract Design
- Define clear interfaces through mock expectations
- Focus on object responsibilities and collaborations
- Use mocks to DRIVE design decisions
- Keep contracts minimal and cohesive
## Common Pitfalls
```typescript
// BAD: Over-mocking internal details
const mock = {
_internalState: {},
_privateMethod: jest.fn() // Don't mock private methods
};
// GOOD: Mock only public interface
const mock = {
publicMethod: jest.fn().mockReturnValue(expectedResult)
};
// BAD: Verifying too many implementation details
expect(mock.method).toHaveBeenCalledTimes(3); // Fragile
// GOOD: Verify essential behavior
expect(mock.method).toHaveBeenCalledWith(expectedArgs);
```Related Skills
cron-job-management
Patterns for creating, testing, debugging, and maintaining cron-driven automation in workspace-hub, including log strategy, failure analysis, and safe git-aware job design.
github-repo-management
Clone, create, fork, configure, and manage GitHub repositories. Manage remotes, secrets, releases, and workflows. Works with gh CLI or falls back to git + GitHub REST API via curl.
webapp-testing
Web application testing toolkit using Playwright with Python. Use for verifying frontend functionality, debugging UI behavior, capturing browser screenshots, viewing browser logs, and automating web interactions.
testing-tdd-london
TDD London School (mockist) specialist for mock-driven, outside-in development. Use for behavior verification testing, contract-driven development, testing object collaborations, or when focusing on HOW objects interact rather than WHAT they contain.
testing-production
Production validation specialist ensuring applications are fully implemented and deployment-ready. Use to verify no mock/stub/fake implementations remain, validate against real databases and APIs, perform end-to-end testing with actual systems, and confirm production readiness.
data-management
Comprehensive DataFrame loading, filtering, transformation, and data pipeline management from Excel, CSV, and multiple sources with YAML-driven configuration.
task-management
Simple task management using a shared TASKS.md file for tracking commitments and action items.
memory-management
Two-tier memory system for decoding workplace shorthand, acronyms, nicknames, and internal language.
close-management
Manage the month-end close process with task sequencing, dependencies, and status tracking.
source-management
Configure and query MCP data sources for enterprise search. Use when checking which sources (chat, email, cloud storage, CRM, knowledge base) are connected, connecting new ones, or tuning query priority and rate limits.
knowledge-management
Create, organize, and maintain support knowledge base content to reduce ticket volume
core-context-management-windows-task-scheduler
Sub-skill of core-context-management: Windows Task Scheduler (+2).