vitest - Vitest Testing Framework for Fast Unit and Integration Tests
Build fast unit and integration tests with Vitest 4.x testing framework
Tags
Updated: 2026-02-09Capabilities
Typical Inputs
Typical Outputs
What this skill does
- configure test environments
- mock modules with vi.mock
- spy on methods with vi.spyOn
- create snapshot tests
- test in-source code
- configure workspace tests
- run browser mode tests
- generate test coverage reports
- migrate from Jest
Inputs
- test code files
- vitest configuration file
- package.json scripts
- browser provider
- coverage provider
Outputs
- test results
- coverage reports
- snapshot files
- test execution logs
Requirements
- Vitest 4.x version
- Vite 6.x compatibility
- Node.js environment
- TypeScript support
