vitest
Skill13 starsChanged 28 days agoMITView on GitHub
Next generation testing framework powered by Vite. - playwright (Score: 0.85) Why: Direct relationship, Both are Testing, Shared ecosystem (javascript), Logical next step - react (Score: 0.65) Why: Direct relationship, Shared ecosystem (javascript), Logical next step - biome (Score: 0.4) Why: Both are Developer Tools, Shared ecosystem (javascript), Can deploy to any
- Reads credentials
- Installs packages
54 other projects use a version of this.
Adopted by
Most recently taken up by
- Inrixia/TidaLunatheir own version, first seen Nov 29, 2026
- oberemokis/skillstheir own version, first seen Nov 29, 2026
- meza/skillstheir own version, first seen Nov 29, 2026
- marcioaltoe/skillstheir own version, first seen Nov 29, 2026
- DobroslavRadosavljevic/cabrakantheir own version, first seen Nov 29, 2026
- fedeya/wisp-aitheir own version, first seen Nov 29, 2026
Used with
Projects with it also use nitro, react-hook-form and 9 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
SentrySkillnitro
Build and deploy universal JavaScript servers with Nitro v3. Use when working with nitro.config.ts, defineNitroConfig, defineHandler, defineConfig, server.ts entry, filesystem routing, route rules, useStorage, defineCachedHandler, useDatabase, definePlugin, runtime hooks, Vercel/Cloudflare deployment, or migrating from Nitro v2/nitropack.
Also in 5 projects that use this
SupabaseSkillreact-hook-form
Correct React Hook Form usage anywhere in the monorepo — data flow, subscriptions,
Also in 3 projects that use this
midudevSkilltailwind-css-patterns
Provides comprehensive Tailwind CSS utility-first styling patterns including responsive design, layout utilities, flexbox, grid, spacing, typography, colors, and modern CSS best practices. Use when styling React/Vue/Svelte components, building responsive layouts, implementing design systems, or optimizing CSS workflow.
Also in 4 projects that use this
xenitV1Skillnodejs-best-practices
Node.js development principles and decision-making. Framework selection, async patterns, security, and architecture. Teaches thinking, not copying.
Also in 5 projects that use this
VercelSkillnext-cache-components
Next.js 16 Cache Components - PPR, use cache directive, cacheLife, cacheTag, updateTag
Also in 4 projects that use this
nicepkgSkilltailwind-v4-shadcn
Production-tested setup for Tailwind CSS v4 with shadcn/ui, Vite, and React.
Also in 3 projects that use this
Other versions54 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 54
- supabase/supabase★ 116ksame name
- prowler-cloud/prowler★ 15ksame name
- joe-bell/cva★ 6.9ksame name
- antfu/skills★ 6.1ksame name
- TheEdoRan/next-safe-action★ 3.1ksame name
- compozy/compozy★ 2.9ksame name
- midudev/tailwind-animations★ 1.5ksame name
- sanity-io/next-sanity★ 955same name
- onmax/nuxt-skills★ 731same name
- pedronauck/skills★ 659same name
44 more not listed
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 repository140 other files it gives its agents.
- algoliaSkill
- anthropic-mcpSkill
- anthropicSkill
- argo-cdSkill
- auth0Skill
- aws-bedrockSkill
- aws-dynamodbSkill
- aws-lambdaSkill
- aws-s3Skill
- azure-blob-storageSkill
- azure-openaiSkill
- better-authSkill
- better-sqlite3Skill
- biomeSkill
- braintreeSkill
- bullmqSkill
- caddySkill
- chromadbSkill
- clerkSkill
- cloudflare-d1Skill
- cloudflare-r2Skill
- cloudflareSkill
- cloudflare-workersSkill
- cloudinarySkill
- cohereSkill
- convexSkill
- datadogSkill
- deepgramSkill
- deepseekSkill
- deno-deploySkill
- digitaloceanSkill
- discordSkill
- dockerSkill
- drizzleSkill
- elevenlabsSkill
- eslintSkill
- expressSkill
- fastapiSkill
- firebaseSkill
- flySkill
- geminiSkill
- github-actionsSkill
- githubSkill
- gitSkill
- google-cloud-runSkill
- google-cloud-storageSkill
- google-maps-platformSkill
- grafanaSkill
- groqSkill
- helmSkill
- honoSkill
- inngestSkill
- jaegerSkill
- jwtSkill
- kafkaSkill
- kubernetesSkill
- langchainSkill
- langfuseSkill
- langgraphSkill
- lemon-squeezySkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.
0
Common
Most of the 13 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 33
Instead of importing beforeEach and describe manually in every test file, you can enable globals: true in your vitest.config.ts.
- Very specific: line 40
If tests randomly timeout in CI but pass locally, it is likely because your CI pipeline has significantly fewer CPU cores than your …
- Distinctive: line 49
Use this when your agent works with vitest — structured patterns beat pasted docs and prevent common hallucinations.
“Common” is measured: kept by at least 6 in 10 of the 13 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Vitest Skill
Next generation testing framework powered by Vite.
Ecosystem Graph Preview
graph LR
vitest["vitest"]:::core
classDef core fill:#f9f,stroke:#333,stroke-width:4px;
vitest -- "works well with" --> playwright
vitest -- "works well with" --> reactRecommended Next Skills
- playwright (Score: 0.85) Why: Direct relationship, Both are Testing, Shared ecosystem (javascript), Logical next step
- react (Score: 0.65) Why: Direct relationship, Shared ecosystem (javascript), Logical next step
- biome (Score: 0.4) Why: Both are Developer Tools, Shared ecosystem (javascript), Can deploy to any
Quick Start
Vitest is a blazing fast unit test framework powered by Vite. It is a drop-in replacement for Jest but significantly faster as it shares the same configuration and transformation pipeline as Vite.
npm install -D vitestProduction Patterns
Setup Files
Instead of importing beforeEach and describe manually in every test file, you can enable globals: true in your vitest.config.ts. Use a setupFiles array to mock global browser APIs (like fetch or localStorage) before any tests run.
Architecture & Scaling
Worker Threads
Vitest runs tests in isolated worker threads. This prevents global state mutations in one test from leaking and corrupting another test. This parallel execution is why Vitest is so fast.
Error Recovery
If tests randomly timeout in CI but pass locally, it is likely because your CI pipeline has significantly fewer CPU cores than your M-series MacBook. Use poolOptions: { threads: { maxThreads: 2 } } in CI to prevent thrashing.
Security Notes
Tests often require API keys. Never commit real API keys to .env.test. Always use msw (Mock Service Worker) to intercept network requests at the network level and return stubbed JSON responses, guaranteeing your test suite never hits real infrastructure.
References
Why use this skill
Use this when your agent works with vitest — structured patterns beat pasted docs and prevent common hallucinations.
AI pitfalls
- Referencing CLI flags or config keys that do not exist
- Using outdated major versions of tools
- Skipping lockfile or version pinning in examples
Production checklist
- Secrets in environment variables, not source code
- Error handling and logging in place
- Rate limits and timeouts configured
Related skills
playwright— works well withreact— works well with
Last Verified: 2026-07-02
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.

