What problem does it solve? Setting up and maintaining a JavaScript or TypeScript test suite involves many decisions: configuration, environments, mocking strategies, coverage thresholds, and CI sharding. This Skill provides structured, reference-backed guidance for the Vitest testing framework so you can write correct tests and configuration 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, stubbed globals and environment variables. - Configuration & Scale: Explains vitest.config.ts setup, jsdom/happy-dom environments, multi-project workspaces, coverage with V8 or Istanbul, and CI sharding with report merging. - Use Case: You need to migrate a Jest suite to Vitest, add coverage thresholds, and split tests across three CI machines. The Skill walks you through config migration, coverage provider setup, and shard/merge-report commands. ## Quick Start Ask the assistant to help you write a Vitest test file with mocked API calls and coverage configuration for your TypeScript project.