What problem does it solve? Setting up and writing tests in Vite-based projects requires knowing Vitest's configuration options, test API, mocking system, and coverage tooling, which are spread across extensive documentation and vary by version. ## Core Features & Use Cases - Configuration Guidance: Set up vitest.config.ts with environments, projects, coverage thresholds, sharding, and CLI options. - Test Authoring Patterns: Write test suites with describe/it, lifecycle hooks, fixtures, parameterized tests, and concurrent execution. - Mocking & Assertions: Create mocks with vi.fn, vi.mock, vi.spyOn, fake timers, stubbed globals, and use the full expect API including snapshots and custom matchers. - Use Case: When adding tests to a Vue or React component library, load the mocking reference to stub API calls with vi.mock, then configure jsdom environment and coverage thresholds in vitest.config.ts. ## Quick Start Ask the AI to write Vitest unit tests with mocked dependencies for a specific source file in your Vite project.