verify-test-coverage

Verify test file existence and naming conventions for hooks and utilities.

Updated Dec 23, 2025
One-click install
npx skills add https://github.com/BIGSHOL/ijw-Calander --skill verify-test-coverage
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: verify-test-coverage
Source: https://github.com/BIGSHOL/ijw-Calander/tree/main/.claude/skills/verify-test-coverage
Command: npx skills add https://github.com/BIGSHOL/ijw-Calander --skill verify-test-coverage

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill ensures that all your custom hooks and utility functions have corresponding test files, preventing regressions and maintaining code quality.

Core Features & Use Cases

  • Test File Verification: Checks for the existence of test files for every hook and utility.
  • Extension Rule Enforcement: Validates that test files using JSX have the .test.tsx extension.
  • Orphan Test Detection: Identifies test files that no longer have corresponding source files.
  • Use Case: After adding a new utility function, run this Skill to confirm you've also created its test file, ensuring your codebase remains robust.

Quick Start

Run the verify-test-coverage skill to check for missing test files.

Frequently Asked Questions about verify-test-coverage

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

FAQPage Schema
How do I check for missing test files for custom hooks and utility functions?

To check for missing test files for custom hooks and utilities, run a verification process that scans for corresponding .test.ts or .test.tsx files in designated directories. This ensures every source file has matching test coverage to prevent regressions.

How do I find orphan test files that no longer have corresponding source code?

To find orphan test files that no longer have corresponding source code, run an orphan test detection check. This process identifies and reports .test.ts or .test.tsx files in your test directories that lack matching source implementations.

How do I enforce JSX test file extension rules in a vitest project?

To enforce JSX test file extension rules in a vitest project, apply an extension rule validation check that ensures any test file using JSX syntax correctly uses the .test.tsx extension instead of .test.ts.

Do I need to configure test directories before verifying test coverage for hooks?

Verifying test coverage for hooks requires designated test directories containing .test.ts or .test.tsx files. The verification process scans these specific locations to match test files with their corresponding custom hook and utility source files.

Can I use this test coverage verification for utility functions that don't use JSX?

Test coverage verification works for utility functions that don't use JSX by checking for the existence of corresponding .test.ts files. It validates standard TypeScript test files alongside enforcing .test.tsx rules for files containing JSX syntax.

When should I run a test file existence check during development?

You should run a test file existence check after adding a new custom hook or utility function to your codebase. This confirms you have created the corresponding test file immediately, maintaining code quality and preventing regressions.