Husky Test Coverage

•
10
•

Enforces code quality by automating Husky git hooks to run tests and verify coverage thresholds before every commit.

Husky Test Coverage is a specialized Claude Code skill designed for Node.js and TypeScript environments to maintain high project standards through automated gatekeeping. It intelligently detects your project's test runner—supporting Jest, Vitest, and Mocha—to configure pre-commit hooks that ensure code coverage meets your required thresholds, defaulting to 80%. By integrating coverage checks directly into the local git workflow, this skill helps developers catch untested code early, preventing regressions and ensuring that only verified, high-quality code is committed to the repository.

主要功能

01Automatic detection of Jest, Vitest, and Mocha test runners.
02Support for multiple package managers including npm, yarn, pnpm, and bun.
03Flexible enforcement modes to either block commits or provide warnings.
0410 GitHub stars
05Seamless installation and configuration of Husky git hooks.
06Configurable coverage thresholds for lines, branches, functions, and statements.

使用场景

01Enforcing minimum test coverage standards in new or existing Node.js projects.
02Standardizing testing workflows across teams using different environments and runners.
03Automating the setup of pre-commit hooks to prevent regression in code quality.