test-code-style

Community

Write consistent, reliable test code with confidence

Authorstardustrain
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill prevents inconsistent and low-quality test implementations by enforcing a shared testing style, coverage expectations, and assertion practices.

Core Features & Use Cases

  • Test Structure Guidance: Defines conventions for organizing test files, describe blocks, contexts, and parameterized cases.
  • Assertion Quality Rules: Ensures tests validate behavior and avoid tautological assertions that merely duplicate implementation details.
  • Use Case: Apply this Skill when adding Vitest specs, creating new test cases, or reviewing existing tests to maintain project-wide testing standards.

Quick Start

Use the test-code-style skill to create a Vitest test file for the exported functions in the target file following the required conventions.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 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: test-code-style
Download link: https://github.com/stardustrain/markdownviewer/archive/main.zip#test-code-style

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 545,000+ vetted skills library on demand.