What problem does it solve? Setting up and maintaining a JavaScript/TypeScript test suite involves many decisions: configuration, mocking strategies, coverage thresholds, test filtering, and multi-project setups. This Skill provides structured, reference-backed guidance for the Vitest testing framework so you can write correct tests and configurations without digging through documentation. ## Core Features & Use Cases - Test Authoring: Covers the test/describe/expect APIs, lifecycle hooks, parameterized tests with test.each and test.for, and custom fixtures via test.extend. - Mocking & Utilities: Guides module mocking with vi.mock, spying with vi.spyOn, fake timers, date mocking, and global/environment stubbing. - Coverage, Filtering & Concurrency: Explains V8 vs Istanbul coverage providers, test filtering by name/tags/changed files, concurrent tests, and CI sharding. - Advanced Setups: Documents test environments (jsdom, happy-dom), type-level testing with expectTypeOf, and multi-project workspace configurations for monorepos. - Use Case: You are adding tests to a monorepo package and need jsdom for DOM tests, mocked API modules, and an 80% coverage threshold—this Skill walks you through the exact vitest.config.ts and test code. ## Quick Start Ask the assistant to help you write a Vitest test file with mocked dependencies and a coverage configuration for your project.