
Vitest
A modern testing framework that shares Vite's config and gives you instant HMR in watch mode. You get a Jest-compatible API with native ESM support, so migration is usually just swapping `jest` for `vi`. Recent versions added control-flow hooks like `aroundEach`, better test metadata with tags, and real browser testing through Playwright. Coverage works out of the box with v8, snapshots update inline, and TypeScript needs zero extra config. If you're already using Vite, this is the obvious choice. If you're not, it's still faster than Jest and the browser mode actually runs tests in Chrome or Firefox instead of simulating DOM behavior.
- skills.sh installs
- 201
- GitHub stars
- 23
- last updated
- Aug 21, 2026
Install
$ npx -y skills add itechmeat/llm-code --skill vitest --agent claude-codeInstalls into .claude/skills of the current project.
Files
Vitest
Next generation testing framework powered by Vite.
Quick Navigation
- Test API - test, describe, hooks
- Expect API - matchers and assertions
- Mocking - vi.fn, vi.mock, fake timers
- Configuration - vitest.config.ts options
- CLI - command line reference
- Browser Mode - real browser testing
When to Use
- Testing Vite-based applications (shared config)
- Need Jest-compatible API with native ESM support
- Component testing in real browser
- Fast watch mode with HMR
- TypeScript testing without extra config
- Parallel test execution
Installation
Install: npm install -D vitest. Requires Node.js >=22 and Vite >=6.4 in v5.
Release Highlights (5.0.0)
Sponsors
Details
- Repository
- github.com/itechmeat/llm-code
- Categories
- Backend & APIs, Testing & QA, Documentation, AI & Agent Building, Automation & Workflows
- First seen
- Jun 3, 2026