vitest
npmv5.0.0TypeScriptNext generation testing framework powered by Vite
Adopt with care
vitest is usable, with caveats. Pulls in 22 transitive packages, about 4.2 MB installed.
- AAdoption: grade A, Excellent.
92.7M downloads per week and 129 known dependents.
- AMaintenance: grade A, Excellent.
Last published 6 days ago. 50 releases in the last 2 years.
- CWeight: grade C, Fair — worth a look.
Pulls in 22 transitive packages, about 4.2 MB installed.
- ASupply chain: grade A, Excellent.
No install scripts, 5 maintainers, and a contained dependency surface.
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding vitest to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Licenses in the dependency tree
Every license you inherit by installing vitest, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- node ^22.12.0 || ^24.0.0 || >=26.0.0
- Module format
- ESM + CommonJS
- TypeScript
- Types included
- Install scripts
- None
vitest vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| vitestthis page | 92.7M | 129 | MIT | 6 days ago |
| @vitest/coverage-istanbul | 0 | 4 | MIT | 13 hours ago |
| @vitest/coverage-v8 | 0 | 52 | MIT | 13 hours ago |
| jest | 42.1M | 70 | MIT | 7 hours ago |
| jest-each | 33.7M | 1 | MIT | 14 hours ago |
| @vitest/pretty-format | 0 | 3 | MIT | 15 hours ago |
Dependencies
Declared by vitest v5.0.0. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (13)
Peer (12)
Dev (33)
Used by
Popular packages that depend on vitest.
Encode & decode XML and HTML entities with ease & speed
Create and parse HTTP Content-Type header
HTTP content negotiation
Get and validate the raw body of a readable stream.
Find and load configuration from a package.json property, rc file, TypeScript module, and more!
Promise based HTTP client for the browser and node.js
Runtime agnostic JS utils
render domhandler DOM nodes to a string
[](https://github.com/mmkal/expect-type/actions/workflows/ci.yml)  [](ht
Custom jest matchers to test the state of the DOM
PostgreSQL client - pure javascript & libpq with the same API
Selectors for Redux.
Simple yet powerful framework for building command-line apps.
URL utils for humans
Minimal H(TTP) framework built for high performance and portability.
Modify a JS/TS file and write back magically just like JSON!
Predictable state container for JavaScript apps
The official, opinionated, batteries-included toolset for efficient Redux development
Missing ECMAScript module utils for Node.js
The fast, flexible & elegant library for parsing and manipulating HTML and XML.
AST-aware v8-to-istanbul
A faster, secure and convenient alternative for JSON.parse
Drizzle ORM package for SQL databases
The modular and type safe schema library for validating structural data
Relationship graph
Dependencies (left) and dependents (right) of vitest.
Frequently installed together
TypeScript definitions for node
Native-ESM powered web dev build tool
Framework for building one portable devtool integration that runs in any viewer.
V8 coverage provider for Vitest
Hub layer that orchestrates devframe docks, terminals, messages, and commands on any host.
An AST-based pattern checker for JavaScript.
Prettier is an opinionated code formatter
Minimal H(TTP) framework built for high performance and portability.
Get an available TCP port to listen
Simple yet powerful framework for building command-line apps.
Let’s get serious about color
The progressive JavaScript framework for building modern web UI.
Release history
50 releases in the last two years, typically about 3 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 5.0.0latest | 6 days ago | 2.6 MB | MIT |
| 5.0.0-rc.4 | 9 days ago | 2.6 MB | MIT |
| 5.0.0-rc.3 | 12 days ago | 2.6 MB | MIT |
| 4.1.11 | 22 days ago | 1.8 MB | MIT |
| 5.0.0-rc.2 | 23 days ago | 2.6 MB | MIT |
| 5.0.0-rc.1 | 29 days ago | 2.6 MB | MIT |
| 5.0.0-beta.7 | 1 month ago | 2.5 MB | MIT |
| 5.0.0-beta.6 | 2 months ago | 2.2 MB | MIT |
| 4.1.10 | 2 months ago | 1.8 MB | MIT |
| 3.2.7 | 2 months ago | 1.3 MB | MIT |
| 5.0.0-beta.5 | 2 months ago | 2.2 MB | MIT |
| 4.1.9 | 2 months ago | 1.8 MB | MIT |
| 3.2.6 | 3 months ago | 1.3 MB | MIT |
| 5.0.0-beta.4 | 3 months ago | 2.0 MB | MIT |
| 3.2.5 | 3 months ago | 1.3 MB | MIT |
Overview
vitest is an npm package that next generation testing framework powered by Vite. It is extremely widely used, with about 92.7M downloads per week and 129 known dependents in the graph. The latest version is 5.0.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need next generation testing framework powered by Vite and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (92.7M weekly downloads).
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
- Trusted by 129 other packages.
Cons
- Large dependency tree (58 direct dependencies) increases install size and audit surface.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Funding
Frequently asked questions
Should I use vitest?
vitest is usable, with caveats. Pulls in 22 transitive packages, about 4.2 MB installed.
How do I install vitest?
Run `npm install vitest` to add vitest to your npm project.
How many dependencies does vitest have?
vitest declares 58 direct dependencies and pulls in 22 packages in total once its runtime tree is resolved totalling about 4.2 MB on disk.
What license is vitest released under?
vitest is distributed under the MIT license. Its dependency tree also includes: Apache-2.0, MIT.
How popular is vitest?
vitest has approximately 92,675,784 downloads per week and 129 known dependent packages.
Is vitest still maintained?
The most recent release of vitest (v5.0.0) was published 6 days ago.
Does vitest run install scripts?
No. vitest does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.