auto-test-quality

Enforce meaningful assertions and proper mock boundaries in JavaScript/TypeScript tests.

6|Updated Mar 31, 2026
One-click install
npx skills add https://github.com/Corvalis-LLC/Crow-Stack --skill auto-test-quality
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: auto-test-quality
Source: https://github.com/Corvalis-LLC/Crow-Stack/tree/main/skills/auto-test-quality
Command: npx skills add https://github.com/Corvalis-LLC/Crow-Stack --skill auto-test-quality

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Tests often pass while failing to verify real behavior, leading to fragile codebases and false confidence. This skill enforces meaningful assertions, proper mock boundaries, and avoidance of tautological tests to raise signal in test suites.

Core Features & Use Cases

  • Meaningful Assertions: Ensure tests verify actual behavior, not mere existence or implementation details.
  • Mock Boundary Discipline: Test interactions at the system boundary rather than internal logic, reducing brittle tests.
  • Anti-pattern Detection: Detect tautologies, over-mocking, and unsafe snapshot usage, guiding corrective refactors.
  • Use Case: Teams adopting stricter test quality in CI pipelines, PR reviews, and test-suite audits.

Quick Start

Write or review unit tests to ensure each test validates a behavior, not a construction detail, and adjust mocks to exercise external interactions.

Frequently Asked Questions about auto-test-quality

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect tautological unit tests in JavaScript or TypeScript?

Tautological unit tests in JavaScript and TypeScript are detected by validating that each assertion checks actual behavior rather than merely confirming object construction or existence. This skill provides lint guidance to identify and refactor these zero-signal tests.

Why do my unit tests pass but fail to catch real bugs?

Unit tests pass without catching bugs when they verify implementation details or lack meaningful assertions. This skill addresses the problem by enforcing assertions that validate real behavior and detecting anti-patterns like tautologies and unsafe snapshots.

How do I enforce meaningful assertions in a CI pipeline?

Meaningful assertions in CI pipelines are enforced by applying lint and validation checks to pull requests and test suites. This skill integrates guardrails that flag tests missing real behavior verification during automated reviews.

Can I use this test quality guidance for integration tests?

Yes, this test quality guidance applies to both unit and integration tests in JavaScript and TypeScript projects. It checks for proper mock boundaries and meaningful assertions across the entire test suite, including CI pipelines and PR reviews.

What are unsafe snapshot tests and how do I fix them?

Unsafe snapshot tests record output without verifying behavior, leading to false confidence. This skill detects improper snapshot usage and guides corrective refactors to replace passive snapshots with meaningful assertions.