What problem does it solve?
This Skill helps you write, organize, and maintain fast JavaScript and TypeScript tests with Vitest, especially when you need clear guidance on configuration, mocking, coverage, filtering, environments, and project setup.
Core Features & Use Cases
- Testing Workflow Guidance: Learn how to define tests, suites, hooks, and fixtures with a Jest-compatible API that fits modern Vite-based projects.
- Mocking and Control: Handle functions, modules, timers, dates, globals, and environment variables for deterministic test behavior.
- Coverage and CI Readiness: Configure coverage reporting, sharding, filtering, snapshots, and multi-project execution for local development and continuous integration.
- Use Case: Use this Skill when setting up a new test suite for a web app, debugging flaky async tests, or standardizing a monorepo’s Vitest configuration.
Quick Start
Ask for help configuring Vitest for your project, then specify whether you need test authoring, mocking, coverage, filtering, environments, or monorepo project setup.