vitest
Skill36 starsChanged 7 months agoMITView on GitHub
Vitest fast unit testing framework powered by Vite with Jest-compatible API. Use when writing tests, mocking, configuring coverage, or working with test filtering and fixtures.
20 other projects use a version of this, 15 of them edited.
Adopted by
Most recently taken up by
- PaulRBerg/agent-skillstheir own version, first seen Oct 1, 2026
- compozy/compozyedited, first seen Oct 1, 2026
- antfu/skillsedited, first seen Sep 30, 2026
- supabase/supabaseedited, first seen Sep 28, 2026
- onmax/nuxt-skillsedited, first seen Sep 18, 2026
- SkotAlexsander/skillstheir own version, first seen Sep 16, 2026
Other versions20 projects use a version of this.
Word for word · 0
None found.
Edited · 15
- supabase/supabase★ 111k64% same
- antfu/skills★ 5.9k63% same
- compozy/compozy★ 2.8k63% same
- onmax/nuxt-skills★ 71763% same
- pedronauck/skills★ 63363% same
- JetBrains/skills★ 36070% same
- ever-works/ever-works★ 15775% same
- PanPanFR/oh-my-openkilo★ 963% same
- FelipeAngeli/skills★ 275% same
- huangzida/skills★ 275% same
5 more not listed
Wrote their own version · 5
- PaulRBerg/agent-skills★ 96same name
- fefogarcia/approved-skills★ 2same name
- Zephyrex21/claude-skills-vetted★ 2same name
- rexxars/skills★ 1same name
- SkotAlexsander/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository18 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .agents/skills/composition-patterns/AGENTS.mdAGENTS.md
- .agents/skills/react-best-practices/AGENTS.mdAGENTS.md
- ui/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- ui/CLAUDE.mdCLAUDE.md
- accessibilitySkill
- vercel-composition-patternsSkill
- frontend-designSkill
- nodejs-backend-patternsSkill
- nodejs-best-practicesSkill
- vercel-react-best-practicesSkill
- seoSkill
- typescript-advanced-typesSkill
- viteSkill
- pupila-ai-reviewSkill
- pupila-fetchersSkill
- pupila-filtersSkill
The file
Files
Vitest = next-gen test framework powered by Vite. Jest-compatible API. Native ESM, TypeScript, JSX. Shares Vite config, transformers, resolvers, plugins.
Key Features:
- Vite-native: Vite pipeline, fast HMR-like test updates
- Jest-compatible: drop-in for most Jest suites
- Smart watch: reruns affected tests via module graph
- Native ESM, TypeScript, JSX. No config.
- Multi-threaded parallel execution
- Coverage via V8 or Istanbul
- Snapshots, mocks, spies
Skill based on Vitest 3.x, generated 2026-01-28.
Core
| Topic | Description | Reference |
| Configuration | Vitest and Vite config integration, defineConfig usage | core-config |
| CLI | Command line interface, commands and options | core-cli |
| Test API | test/it function, modifiers like skip, only, concurrent | core-test-api |
| Describe API | describe/suite for grouping tests and nested suites | core-describe |
| Expect API | Assertions with toBe, toEqual, matchers and asymmetric matchers | core-expect |
| Hooks | beforeEach, afterEach, beforeAll, afterAll, aroundEach | core-hooks |
Features
| Topic | Description | Reference |
| Mocking | Mock functions, modules, timers, dates with vi utilities | features-mocking |
| Snapshots | Snapshot testing with toMatchSnapshot and inline snapshots | features-snapshots |
| Coverage | Code coverage with V8 or Istanbul providers | features-coverage |
| Test Context | Test fixtures, context.expect, test.extend for custom fixtures | features-context |
| Concurrency | Concurrent tests, parallel execution, sharding | features-concurrency |
| Filtering | Filter tests by name, file patterns, tags | features-filtering |
Advanced
| Topic | Description | Reference |
| Vi Utilities | vi helper: mock, spyOn, fake timers, hoisted, waitFor | advanced-vi |
| Environments | Test environments: node, jsdom, happy-dom, custom | advanced-environments |
| Type Testing | Type-level testing with expectTypeOf and assertType | advanced-type-testing |
| Projects | Multi-project workspaces, different configs per project | advanced-projects |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

