Vite integration, ESM support, describe/it/expect, mocking (vi.mock), snapshot testing, coverage, watch mode, CI config.
Scanned 9/12/2026
Install to Claude Code
npx -y skills add skeletorflet/opencode-supreme-setup --skill vitest --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Vitest?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/skeletorflet-vitest)More formats (shields.io, HTML) on the badges page.
---
name: vitest
description: Vite integration, ESM support, describe/it/expect, mocking (vi.mock), snapshot testing, coverage, watch mode, CI config.
---
## vitest
Blazing fast unit testing with Vite.
### Setup and config
- Vite integration: zero-config for Vite projects
- vitest.config.ts: customize test behavior
- Global setup and teardown
- Environment: node, jsdom, happy-dom
### Test structure
- describe, it, test blocks
- expect assertions with matchers
- beforeEach, afterEach, beforeAll, afterAll
- Test filtering with .only, .skip, .todo
### Mocking
- vi.mock for module-level mocking
- vi.spyOn for function spies
- vi.fn for fake implementations
- vi.useFakeTimers for time control
### Advanced
- Snapshot testing with toMatchSnapshot
- Coverage reports with c8/istanbul
- Watch mode with --ui
- CI: --reporter=junit, --reporter=json
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!