What problem does it solve? Setting up and maintaining a reliable JavaScript/TypeScript test suite is time-consuming, and developers often struggle with mocking dependencies, handling async code, and measuring coverage correctly. ## Core Features & Use Cases - Test Authoring Patterns: Provides ready-to-use patterns for unit tests, async tests, error assertions, and snapshot testing with Vitest. - Mocking & Isolation: Guides module and function mocking with vi.mock() and vi.fn() to isolate the unit under test. - React Component Testing: Integrates Testing Library patterns for rendering components and simulating user events. - Coverage & Workflow: Covers a three-phase workflow from environment setup (jsdom/happy-dom/node) through coverage reporting with v8 or istanbul. - Use Case: When adding tests to a Vite-based React project, use this Skill to configure the test environment, mock API calls, write component interaction tests, and generate a coverage report. ## Quick Start Write Vitest unit tests with mocked API calls for my TypeScript utility functions and show me how to run them with coverage.