reviewing-test-quality

Audit Vitest configuration, coverage, and React 19 API testing patterns.

Updated Nov 21, 2025
One-click install
npx skills add https://github.com/djankies/claude-configs --skill reviewing-test-quality
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: reviewing-test-quality
Source: https://github.com/djankies/claude-configs/tree/main/react-19/skills/reviewing-test-quality
Command: npx skills add https://github.com/djankies/claude-configs --skill reviewing-test-quality

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps assess and improve test quality for React 19 projects by evaluating test coverage, patterns, and API usage. It guides validating Vitest configuration, testing patterns, and server action testing practices.

Core Features & Use Cases

  • Test Coverage Validation: Ensure components and server actions have tests, including edge cases.
  • React 19 API Testing: Validate usage of APIs such as useActionState, useOptimistic, useFormStatus, and use() in tests.
  • Testing Patterns: Enforce Testing Library conventions, accessible queries, and avoid testing implementation details.
  • Server Action Testing: Test server actions as standalone functions with proper input validation and error handling.

Quick Start

Run this skill against your repository to audit test coverage, verify React 19 APIs usage in tests, and enforce consistent testing patterns.

Frequently Asked Questions about reviewing-test-quality

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

FAQPage Schema
How do I improve test quality for React 19 projects?

Test quality for React 19 improves by auditing Vitest configuration, validating coverage across components and server actions, enforcing Testing Library patterns with accessible queries, and ensuring proper async handling with waitFor. This Skill assesses those dimensions and identifies gaps in your test suite.

How do I test React 19 server actions properly?

Test server actions as isolated functions with input validation and error-path coverage, separate from component integration tests. This Skill validates that your server action tests follow best practices and cover edge cases without implementation detail leakage.

What testing patterns should I enforce with Vitest and Testing Library?

Enforce user-interaction tests over implementation details, use accessible queries (getByRole, getByLabelText), apply renderHook for custom hooks, mock external dependencies, and handle async operations with waitFor. This Skill audits your codebase against these conventions and flags anti-patterns.

How do I validate React 19 API usage in tests?

Validate that tests correctly use React 19 APIs like useActionState, useOptimistic, useFormStatus, and use(). This Skill checks your test patterns to ensure these APIs are tested with proper async handling and realistic user flows.

Can I audit test coverage for forms and hooks in React 19?

Yes. This Skill audits test coverage for components, forms, hooks, and server actions, verifying that edge cases and error paths are tested. It ensures hooks use renderHook and forms validate user interactions end-to-end.