vitest - Vitest Fast Unit Testing Framework with Vite Integration
Fast unit testing framework powered by Vite with Jest-compatible API for testing, mocking, coverage, and test filtering.
Tags
Updated: 2026-02-18Capabilities
Typical Inputs
Typical Outputs
What this skill does
- configure test framework
- run tests via CLI
- create test cases
- group tests with describe
- write assertions with expect
- setup test hooks
- mock functions and modules
- create snapshots
- generate code coverage
- use test context
- run concurrent tests
- filter tests by patterns
Inputs
- JavaScript/TypeScript code
- Vite configuration
- test files
- module dependencies
- test environment settings
Outputs
- test execution results
- coverage reports
- snapshot files
- test logs
- exit codes
Requirements
- Vite development environment
- Node.js runtime
- ESM/TypeScript support
- test file structure
