---
title: "Vitest - Air Market"
description: "You are writing tests for a JavaScript project and want to check your code does what you think. This helps you write those tests, stand in fake versions of the parts you do not want to run for real,…"
canonical: "https://airmarket.ai/app/vitest"
---

[Air Market](/) / [Developer Tools](/category/devtools) / Vitest

Skill by [Anthony Fu](/@antfu)

# Vitest

Write tests with a Jest-style API and Vite behind it

## What this does

You are writing tests for a JavaScript project and want to check your code does what you think. This helps you write those tests, stand in fake versions of the parts you do not want to run for real, see how much of your code the tests touch, and pick out just the ones to run.

### Top 3 things it does for you

- Write unit tests for my code
- Mock things my tests depend on
- Set up coverage reporting

## Information

**Vitest at a glance**

|  |  |
| --- | --- |
| Kind | Skill |
| Publisher | [Anthony Fu](/@antfu) |
| Category | [Developer Tools](/category/devtools) |
| Works with | Agent Skills - an open standard supported by 40+ agents |
| Version | 2026.6.22 |
| Size | 94 KB |
| Licence | MIT |
| Repository | [antfu/skills](https://github.com/antfu/skills/tree/a74f281a27dadc02397bc1a174b0f2c97531b6ae/skills/vitest) |
| GitHub stars | 5,792 (as of Nov 2026) |
| Installs | 47,597, counted by skills.sh (Nov 2026) |

## Security report

**Verified.** AIR scanned this exact version of Vitest and flagged nothing. AIR's verdict: **safe**.

**What Vitest's check was run against**

|  |  |
| --- | --- |
| Commit | a74f281a27dadc02397bc1a174b0f2c97531b6ae |
| Content hash | 3dc1b8e1d41f82ba64449b38197ece2bbb2c23e95f052f08beb0dcc399b27860 |
| Files read | [Browse the files at this exact commit](https://github.com/antfu/skills/blob/a74f281a27dadc02397bc1a174b0f2c97531b6ae/skills/vitest/SKILL.md) |

A scan is named by the exact content it read, not by a version number. A different version is a different artifact, and nothing here applies to a version AIR has not scanned.

[Read the full security report for Vitest](/security/vitest)

## About Vitest

Vitest is a unit testing framework built on Vite, with an API compatible with Jest. This skill is for the work around it: writing tests, setting up mocks, and configuring coverage.

It also covers test filtering and fixtures, so you can narrow a run to the tests you want and share setup between them.

## What's inside

- SKILL.md - instructions
- GENERATION.md - reference
- references/advanced-environments.md - reference
- references/advanced-projects.md - reference
- references/advanced-type-testing.md - reference
- references/advanced-vi.md - reference
- references/core-cli.md - reference
- references/core-config.md - reference
- references/core-describe.md - reference
- references/core-expect.md - reference
- references/core-hooks.md - reference
- references/core-test-api.md - reference
- references/features-benchmarking.md - reference
- references/features-concurrency.md - reference
- references/features-context.md - reference
- references/features-coverage.md - reference
- references/features-filtering.md - reference
- references/features-mocking.md - reference
- references/features-reporters.md - reference
- references/features-snapshots.md - reference
- references/features-test-tags.md - reference

## Questions

### Is Vitest safe to install?

AIR scanned this exact version of Vitest and flagged nothing. AIR's verdict: safe. The verdict is named by the content that was read, at commit a74f281a27da, so it cannot drift onto a version nobody scanned. The full report is at https://airmarket.ai/security/vitest.

### How do I install Vitest?

Open https://airmarket.ai/app/vitest on Air Market and use the install action: Air Market hands Claude a prompt naming this exact skill, and Claude sets it up. Source, pinned to the exact commit this listing describes: https://github.com/antfu/skills/tree/a74f281a27dadc02397bc1a174b0f2c97531b6ae/skills/vitest. Install from that link, not the branch.

## Related on Air Market

- [More Developer Tools listings](/category/devtools)
- [Everything by Anthony Fu](/@antfu)

---

Canonical URL: <https://airmarket.ai/app/vitest>
