mock-detection

Community

Deep mock analysis for tests

Authorashaykubal
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill identifies inappropriate or excessive use of mocks in your test suite, ensuring your tests accurately reflect real-world behavior and provide reliable confidence.

Core Features & Use Cases

  • Mock Appropriateness Analysis: Evaluates if mocks are used correctly based on test type (unit, integration, E2E).
  • Violation Detection: Identifies specific anti-patterns like mocking the system under test (T1) or verifying calls without results (T2).
  • Use Case: When running your test suite, this Skill can pinpoint tests that use mocks in a way that gives a false sense of security, helping you refactor them for true effectiveness.

Quick Start

Analyze the test file 'tests/user.test.ts' for mock appropriateness.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: mock-detection
Download link: https://github.com/ashaykubal/essential-agents-skills/archive/main.zip#mock-detection

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.