Advanced Vitest & React Testing Guide

0•

Provides expert guidance and implementation patterns for Vitest, React Testing Library, and Supabase mocking to ensure robust software behavior.

This skill equips Claude with specialized knowledge to architect and implement high-quality test suites for modern web applications. It focuses on high-ROI testing strategies—prioritizing utils and business logic—and enforces industry best practices like the AAA (Arrange, Act, Assert) pattern and behavior-driven testing. Whether you are mocking complex Supabase interactions, testing custom React hooks, or setting up Vitest infrastructure, this skill ensures your tests are resilient, maintainable, and decoupled from internal implementation details.

주요 기능

01Standardized AAA (Arrange, Act, Assert) testing patterns for clear documentation.
02Detailed Vitest 3.x API references for advanced mocking, coverage, and workspace configuration.
03Comprehensive Supabase mocking strategies for isolated, reliable integration tests.
040 GitHub stars
05Prioritized testing hierarchy focusing on high-ROI business logic and utility functions.
06Expert React Testing Library query selection using the accessibility-first 'getByRole' approach.

사용 사례

01Generating robust unit tests for complex utility functions, validators, and Zod schemas.
02Mocking external database services and authentication flows in Supabase-driven applications.
03Verifying user interactions, component state changes, and hook logic in React frontend environments.