# vitest

> Next generation testing framework powered by Vite

Latest version **5.0.3** (published 2026-09-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install vitest
pnpm add vitest
yarn add vitest
bun add vitest
```

Provides the command `vitest`.

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; popular repo.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 5.0.3 |
| Published | 2026-09-30 |
| First published | 2021-12-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | ^22.12.0 \|\| ^24.0.0 \|\| >=26.0.0 |
| Dependencies | 13 |
| Unpacked size | 2.6 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 17178 |
| Author | Anthony Fu <anthonyfu117@hotmail.com> |
| Maintainers | ariperkkio, antfu, hiogawa, oreanno, yyx990803 |
| Keywords | vite, vitest, test, jest |

## Links

- npm: https://www.npmjs.com/package/vitest
- Repository: https://github.com/vitest-dev/vitest
- Homepage: https://vitest.dev
- Issues: https://github.com/vitest-dev/vitest/issues
- Funding: https://opencollective.com/vitest
- npm.io page: https://npm.io/package/vitest

## Dependencies (13)

- [chai](https://npm.io/package/chai.md) ^6.2.2
- [obug](https://npm.io/package/obug.md) ^2.1.4
- [std-env](https://npm.io/package/std-env.md) ^4.2.0
- [tinyexec](https://npm.io/package/tinyexec.md) ^1.3.0
- [picomatch](https://npm.io/package/picomatch.md) ^4.0.7
- [tinybench](https://npm.io/package/tinybench.md) ^6.1.4
- [tinyglobby](https://npm.io/package/tinyglobby.md) ^0.2.17
- [@types/chai](https://npm.io/package/@types/chai.md) ^5.2.2
- [expect-type](https://npm.io/package/expect-type.md) ^1.4.0
- [magic-string](https://npm.io/package/magic-string.md) ^1.2.3
- [@vitest/mocker](https://npm.io/package/@vitest/mocker.md) 5.0.3
- [es-module-lexer](https://npm.io/package/es-module-lexer.md) ^2.3.2
- [why-is-node-running](https://npm.io/package/why-is-node-running.md) 3.2.1

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads
- [aws-elasticsearch-connector](https://npm.io/package/aws-elasticsearch-connector.md) — 37.4K weekly downloads

## Recent versions

- 5.0.3 (latest) — 2026-09-30
- 5.0.0-rc.4 (rc) — 2026-08-31
- 4.1.11 (V4) — 2026-08-18
- 5.0.0-beta.7 (beta) — 2026-07-24
- 3.2.7 (V3) — 2026-07-06
- 5.0.2 — 2026-09-25
- 5.0.1 — 2026-09-15
- 5.0.0 — 2026-09-03
- 5.0.0-rc.3 — 2026-08-28
- 5.0.0-rc.2 — 2026-08-17
- 5.0.0-rc.1 — 2026-08-11
- 5.0.0-beta.6 — 2026-07-06
- 4.1.10 — 2026-07-06
- 5.0.0-beta.5 — 2026-06-15
- 4.1.9 — 2026-06-15
- … 471 more at https://npm.io/package/vitest/versions

## README

# vitest

[![NPM version](https://img.shields.io/npm/v/vitest?color=a1b858&label=)](https://npmx.dev/package/vitest)

Next generation testing framework powered by Vite.

[GitHub](https://github.com/vitest-dev/vitest) | [Documentation](https://vitest.dev/)

---
_Source: https://npm.io/package/vitest · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
