What problem does it solve? Writing tests with Vitest requires knowing its Jest-compatible but distinct API (vi.mock, vi.fn, fake timers), configuration options, and patterns like in-source testing, which developers often get wrong by mixing in Jest idioms. ## Core Features & Use Cases - Test Generation Patterns: Provides ready-to-use templates for unit tests, module mocking with vi.mock, spies, fake timers, and snapshot testing. - React Component Testing: Covers Testing Library integration for rendering and asserting on React components in a jsdom environment. - Configuration Guidance: Includes a complete vitest.config.ts setup with coverage, globals, and includeSource for co-located in-source tests. - Use Case: When migrating a Vite-based TypeScript project from Jest, use this Skill to rewrite jest.mock calls as vi.mock, configure vitest.config.ts, and generate table-driven tests with test.each. ## Quick Start Ask the AI to generate Vitest tests with mocking and coverage configuration for a specific TypeScript module in your project.