testing-anti-patterns

Review test suites for assertions on mock elements.

4|1|Updated Jul 6, 2025
One-click install
npx skills add https://github.com/Dmccarty30/Journeyman-Jobs --skill testing-anti-patterns-dmccarty30
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-anti-patterns
Source: https://github.com/Dmccarty30/Journeyman-Jobs/tree/main/.claude/skills/testing-anti-patterns
Command: npx skills add https://github.com/Dmccarty30/Journeyman-Jobs --skill testing-anti-patterns-dmccarty30

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill identifies and prevents common testing anti-patterns that lead to brittle, unreliable, or misleading tests. It ensures your tests verify real code behavior, not just mock interactions, and keeps your production code clean.

Core Features & Use Cases

  • Mock Behavior Prevention: Stops you from testing mocks instead of actual component logic.
  • Production Code Purity: Prevents adding test-only methods to production classes.
  • Dependency Understanding: Guides you to mock only when necessary and with full understanding of dependencies.
  • Use Case: When tempted to assert on a mock element or add a destroy() method solely for tests, this skill will guide you to the correct, robust testing practice.

Quick Start

Use the testing-anti-patterns skill to review the current test suite for any assertions on mock elements.