# Vitest

> Next generation testing framework powered by Vite

Source: https://talira.ai/catalog/vitest-eyy494yh
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Framework, Command-line tool
- Categories: [developer tools / testing / frameworks](https://talira.ai/categories/developer-tools/testing/frameworks), [languages / javascript](https://talira.ai/categories/languages/javascript)
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Self-hostable: yes[^1]
- Plugins: yes[^3]
- Backed by: [VoidZero](https://talira.ai/orgs/voidzero.md)
- Funding: venture-backed[^4]
- Sponsors: Vercel, Chromatic, Zammad

Vitest is a test framework for JavaScript and TypeScript built on [Vite](https://talira.ai/catalog/vite-2kbqmjmm.md). It reuses a project's Vite config, transformers, resolvers and plugins, so tests run through the same pipeline as the app, but it also works in projects that don't use Vite, including backend code. Its APIs are compatible with [Jest](https://talira.ai/catalog/jest-wp596gce.md) (expect, snapshots, mocking), which makes migrating straightforward, and its watch mode reruns only the tests related to a change, like hot module replacement for tests. It handles ESM, TypeScript and JSX out of the box, has a Browser Mode that runs component tests in a real browser, and measures coverage with v8 or istanbul. It's free and open source under the MIT licence, maintained by VoidZero and its contributors.

## Links

- Website: https://vitest.dev/
- GitHub: https://github.com/vitest-dev/vitest
- Docs: https://vitest.dev/guide/

## Problems it solves

- Jest is slow and painful to configure with ESM and TypeScript in my Vite project
- my tests need a separate Babel config that drifts from the app's build config
- rerun only the tests affected by the file I just saved
- migrate a large Jest test suite without rewriting every assertion and mock
- run React or Vue component tests in a real browser instead of jsdom
- measure code coverage for a TypeScript project without extra tooling
- unit test a Node backend written in TypeScript with zero config
- test my TypeScript types alongside my runtime tests

## Features

- reuses Vite's config, transformers, resolvers and plugins
- Jest-compatible expect, snapshot and mocking APIs
- watch mode that reruns only related tests
- ESM, TypeScript and JSX out of the box
- Browser Mode for component tests in a real browser
- coverage via v8 or istanbul
- benchmarking with Tinybench
- type testing via expect-type
- sharding and test projects
- in-source testing

## Capabilities

- Has a command line tool: plan not known
- Takes plugins: plan not known
- Has official SDKs: plan not known

## Trust

Overall: 0.54 out of 1.
Signals: backing 0.70, extensibility 0.40.

- backed by VoidZero
- funding: venture-backed
- sponsored by Vercel, Chromatic, Zammad
- has a plugin system

Warnings:

- GitHub activity not fetched yet

## Related

- Works with [Vite](https://talira.ai/catalog/vite-2kbqmjmm.md)

## Alternatives

- [Jest](https://talira.ai/catalog/jest-wp596gce.md): Delightful JavaScript Testing
- [pytest](https://talira.ai/catalog/pytest-5repc51s.md): pytest: helps you write better programs
- [Mocha](https://talira.ai/catalog/mocha-81yyxe95.md): Feature-rich JavaScript test framework for Node.js and the browser

## Sources

[^1]: https://vitest.dev/ (checked 23 Nov 2026)
[^2]: https://github.com/vitest-dev/vitest/blob/main/LICENSE (checked 23 Nov 2026)
[^3]: https://vitest.dev/guide/features (checked 23 Nov 2026)
[^4]: https://voidzero.dev/ (checked 22 Nov 2026)
