---
title: "Vitest: review, setup & limitations · Undominated.ai"
canonical: https://undominated.ai/skills/jetbrains-vitest/
description: "Routes an agent through Vitest one topic at a time: configuration shared with the Vite pipeline, the test/describe/expect APIs and hooks, mocking with the vi utilities, snapshot testing, V8 versus Istanbul coverage, fixtures via test.extend, environments, and type-level testing."
---

# Vitest: review, setup & limitations · Undominated.ai

> Routes an agent through Vitest one topic at a time: configuration shared with the Vite pipeline, the test/describe/expect APIs and hooks, mocking with the vi utilities, snapshot testing, V8 versus Istanbul coverage, fixtures via test.extend, environments, and type-level testing.

[← Explore all skills](/skills/)

TESTING AND RELIABILITY / JetBrains

# Vitest

Routes an agent through Vitest one topic at a time: configuration shared with the Vite pipeline, the test/describe/expect APIs and hooks, mocking with the vi utilities, snapshot testing, V8 versus Istanbul coverage, fixtures via test.extend, environments, and type-level testing.

 [See setup guidance ↓](#setup)[Original source ↗](https://github.com/JetBrains/skills/tree/e0f258b5cfed145015cb3e48da9a97947f7c4ed7/vitest)

SOURCE REVIEW

 Reviewed 2026-10-07
 Evidence 6 linked sources
 Publisher JetBrains
 Licence [MIT (upstream antfu/skills) ↗](https://github.com/antfu/skills/blob/e53a142a2420e8cd812cfe9ed0484ab01bc856aa/LICENSE.md)
 Revision e0f258b5cfed
 [Read what was—and wasn’t—checked ↓](#review)

“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.”

 [JetBrains · upstream description ↗](https://github.com/JetBrains/skills/blob/e0f258b5cfed145015cb3e48da9a97947f7c4ed7/vitest/SKILL.md) Our analysis follows below.

01 / THE REASONING

## Why this made the selection.

 - Splits the parts of Vitest that agents get wrong into dedicated reference files — vi mocking of modules, timers and dates, snapshot testing, and coverage provider choice — instead of compressing them into prose.
- The reference tree mirrors the official manual's structure and was generated from the vitest-dev/vitest docs, so an agent loads exactly one topic (for example features-snapshots.md) rather than the whole framework.
- Frames Jest compatibility explicitly: what drops in from an existing Jest suite and what has to move to Vite-native config, which is the actual migration question.

### A good fit for

 - Writing or migrating Vitest suites, including mocking, fake timers and fixture design with test.extend
- Setting up coverage with a deliberate V8-versus-Istanbul provider choice
- Keeping snapshot and concurrency behaviour disciplined rather than cargo-culted from Jest habits

### Weigh up before choosing

 - The mirror carries the January 2026 generation, based on Vitest 3.x; the upstream antfu/skills generator has since produced a Vitest 5.0.1 revision (2026-09-25) that the pinned mirror revision does not include.
- Reference-index style: the SKILL.md is a routing table over 16 reference files and deliberately carries no worked project.
- Vitest-specific. Jest-only codebases get migration framing, not Jest recipes.

02 / THE REVIEW RECORD

## What we actually inspected.

Source review has boundaries. A clear record is more useful than a “safe” badge.

### Material inspected

 - vitest/SKILL.md (JetBrains mirror)
- vitest/references directory listing (16 files)
- upstream antfu/skills skills/vitest/SKILL.md
- upstream LICENSE.md
- JetBrains/skills README mirror policy

### Our findings

 - Every one of the 16 reference links in the SKILL.md resolves to a file present in the mirror's references directory, verified against the directory listing.
- Front matter credits Anthony Fu's antfu/skills as source and names the generator input (vitest-dev/vitest); the mirror adds only a short-description field.
- The mirror snapshot is dated 2026-01-28 and based on Vitest 3.x, while the upstream generator has moved to a 2026-09-25 Vitest 5.0.1 build — the pinned revision is eight months behind upstream.

### Not established by this review

 - No test suite was written or executed with this skill; the workflow was read, not run.
- Reference files were verified to exist and sampled, not read end to end.

The review applies to the material and revision named here. A newer upstream release can change its behavior.

03 / PUT IT TO WORK

## Add a skill to your workflow.

[Upstream setup instructions ↗](https://github.com/vercel-labs/skills/blob/7407f3893ad4dceab546ac002c3ef806e4000c73/README.md)

DOCUMENTED COMMAND

 npx skills add JetBrains/skills/vitest --skill vitest Copy command ↗

Run in your terminal to choose your AI tools, project or global scope, and installation method. This short command follows the current upstream version; the review covers the revision shown above.

 Optional: install the reviewed revision

Keeps the original source and installer version where recorded, while leaving your AI tools and installation scope for you to choose.

 npx skills add https://github.com/JetBrains/skills/tree/e0f258b5cfed145015cb3e48da9a97947f7c4ed7/vitest --skill vitest Copy reviewed-revision command ↗ - Install the complete skill directory; the references are the substance and must travel with the SKILL.md.
- Point the agent at the failing suite or the coverage gap; let it load only the reference topic it needs.

### Before you start

 - Node.js/npm for the installer
- An agent that supports the Agent Skills format
- A Vitest (or Jest-to-Vitest) project

### Compatibility

Agent Skills-compatible coding agents · Vitest 3.x test suites · Vite-based projects sharing the transform pipeline

### Reads test and Vite config files; writes test files

 - Read project test files and vite/vitest configuration
- Write test files, fixtures and Vitest config
- Run the test runner only when the user asks

### Cost model

MIT-licensed instruction package; test execution costs only local machine and agent time.

04 / FOLLOW THE EVIDENCE

## The source trail.

Our notes are separate from the original resource. Check upstream before adopting a new version.

 - [Skill definition at reviewed revision ↗](https://github.com/JetBrains/skills/blob/e0f258b5cfed145015cb3e48da9a97947f7c4ed7/vitest/SKILL.md) Checked 2026-10-07 https://github.com/JetBrains/skills/blob/e0f258b5cfed145015cb3e48da9a97947f7c4ed7/vitest/SKILL.md Supports: summary, upstreamDescription, whySelected, bestFor, limitations, review, access
- [Reference directory listing at reviewed revision (16 documents) ↗](https://github.com/JetBrains/skills/tree/e0f258b5cfed145015cb3e48da9a97947f7c4ed7/vitest/references) Checked 2026-10-07 https://github.com/JetBrains/skills/tree/e0f258b5cfed145015cb3e48da9a97947f7c4ed7/vitest/references Supports: review, whySelected
- [Upstream skill definition (origin of the mirrored content) ↗](https://github.com/antfu/skills/blob/e53a142a2420e8cd812cfe9ed0484ab01bc856aa/skills/vitest/SKILL.md) Checked 2026-10-07 https://github.com/antfu/skills/blob/e53a142a2420e8cd812cfe9ed0484ab01bc856aa/skills/vitest/SKILL.md Supports: review, limitations
- [Upstream license (MIT) ↗](https://github.com/antfu/skills/blob/e53a142a2420e8cd812cfe9ed0484ab01bc856aa/LICENSE.md) Checked 2026-10-07 https://github.com/antfu/skills/blob/e53a142a2420e8cd812cfe9ed0484ab01bc856aa/LICENSE.md Supports: license
- [Mirror policy: JetBrains-filtered, JetBrains-verified snapshot with source links and CI skill scanning ↗](https://github.com/JetBrains/skills/blob/e0f258b5cfed145015cb3e48da9a97947f7c4ed7/README.md) Checked 2026-10-07 https://github.com/JetBrains/skills/blob/e0f258b5cfed145015cb3e48da9a97947f7c4ed7/README.md Supports: review, install, limitations
- [Skills installer source formats and selective installation ↗](https://github.com/vercel-labs/skills/blob/7407f3893ad4dceab546ac002c3ef806e4000c73/README.md) Checked 2026-10-07 https://github.com/vercel-labs/skills/blob/7407f3893ad4dceab546ac002c3ef806e4000c73/README.md Supports: install

KEEP COMPARING

## Other approaches to consider.

Related by category or shared topics. These are alternatives to inspect, not a measured quality order.

 [### Vue 3 Pinia Unit Testing ↗ Writes and reviews unit tests for Vue 3 + TypeScript + Vitest + Pinia codebases: behavior-first assertions on components, composables and stores, with createTestingPinia setups from a checked-in pattern cookbook.](/skills/github-unit-test-vue-pinia/)[### Bug Receipt ↗ Creates an evidence-bearing defect or incident handoff that distinguishes verified, partial and blocked outcomes.](/skills/github-bug-receipt/)[### Diagnosing Bugs ↗ A debugging procedure that establishes a reproducible symptom, tests competing explanations and preserves a regression check.](/skills/mattpocock-diagnosing-bugs/)

 [AI Tools ↗](/tools/)[Skills ↗](/skills/)[Agents ↗](/agents/)[MCP Servers ↗](/mcp-servers/)[Workflows ↗](/workflows/)

## Continue your investigation

 - [Choose a toolkit](/tools/)
- [Inspect execution hosts](/agents/)
- [Check tool access](/mcp-servers/)
- [Check project dependencies](/check-repo/)
