What problem does it solve? Setting up and maintaining a Vitest test suite involves many moving parts—configuration, mocking, coverage, fixtures, environments, and CI sharding—and getting any of them wrong leads to flaky or slow tests. This Skill provides accurate, version-aware guidance (including v4/v5 breaking changes) for every part of the Vitest workflow. ## Core Features & Use Cases - Test Authoring: Covers the test/describe/expect APIs, hooks, parameterized tests, concurrent tests, and custom fixtures via test.extend and test.override. - Mocking & Utilities: Documents vi.fn, vi.spyOn, module mocking with vi.mock/vi.doMock, fake timers, vi.when conditional mocking, and global/env stubbing. - Coverage, Filtering & CI: Explains V8/Istanbul coverage setup, thresholds, test filtering by name/tags/changed files, sharding with blob reports, and reporter configuration. - Use Case: You are migrating a Jest suite to Vitest 5 and need to update config (poolOptions removal, projects instead of workspace), rewrite benchmarks to the new context-based bench fixture, and set up sharded CI runs with merged reports. ## Quick Start Use the vitest skill to help me configure vitest.config.ts with jsdom environment, coverage thresholds, and a mocked API module for my test suite.