assertion-patterns

Community

Transform mock tests to real output checks.

Authorashaykubal
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses tests that rely too heavily on mocks, leading to brittle tests that don't verify actual system behavior, thus providing false confidence.

Core Features & Use Cases

  • Mock Transformation: Converts tests that mock the system under test or only assert on calls into tests that verify observable output.
  • Prerequisite Checks: Ensures tests import production modules and adhere to separation of concerns and naming conventions.
  • Use Case: Refactor tests flagged by test-audit to ensure they validate real functionality rather than just mock interactions.

Quick Start

Use the assertion-patterns skill to rewrite tests that mock the system under test.

Dependency Matrix

Required Modules

None required

Components

references

💻 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: assertion-patterns
Download link: https://github.com/ashaykubal/essential-agents-skills/archive/main.zip#assertion-patterns

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.