i ideas / repo launcher
vitest-dev avatar

vitest-dev/vitest

★ 17,364TypeScriptMIT88

Next generation testing framework powered by Vite.

What it is

Vite's config, transformers, resolvers, and plugins. Use the same setup from your app! Jest Snapshot Chai built-in for assertions, with Jest expect compatible APIs Smart & instant watch mode, like HMR for tests! Native code coverage via v8 or istanbul. Jest-compatible mocking, stubbing, and spies. JSDOM and happy-dom for DOM and browser API mocking Browser Mode for running component tests in the browser Components testing (Vue, React, Svelte, Lit, Marko) Benchmarking support with Tinybench Projects support expect-type for type-level testing ESM first, top level await Out-of-box TypeScript / JSX support Filtering, timeouts, concurrent for suite and tests Sharding support Reporting Uncaught…

When to use it

Reach for vitest when you need tests, end-to-end browser automation, linting or formatting — it's written in TypeScript and fits stacks tagged test, testing-tools, vite.

Category
Testing & Quality
Also in
—
Stars
17,364
Forks
2,149
Last push
today
Created
2021-12-03
Open issues
365
Website
vitest.dev

Quick start

$ git clone https://github.com/vitest-dev/vitest.git

Hand it to your AI

Read https://ideas.asveas.com/r/vitest-dev/vitest.md and help me add vitest-dev/vitest to my project. Explain the setup steps for my stack and show the minimal code to get it working.

Alternatives to vitest

All Testing & Quality →

Pairs well with

FAQ

What is vitest?

vitest-dev/vitest is a testing tool on GitHub: Next generation testing framework powered by Vite. Vite's config, transformers, resolvers, and plugins.

When should I use vitest?

Reach for vitest when you need tests, end-to-end browser automation, linting or formatting — it's written in TypeScript and fits stacks tagged test, testing-tools, vite.

What are the best alternatives to vitest?

Popular alternatives in Testing & Quality: microsoft/playwright (99.9k★), puppeteer/puppeteer (95.8k★), prettier/prettier (52.4k★), cypress-io/cypress (51k★), biomejs/biome (26.1k★).

Is vitest actively maintained?

vitest-dev/vitest looks very actively maintained: the last push was today (2026-11-11), with 17,364 stars and 365 open issues.

What license does vitest use?

vitest-dev/vitest is published under the MIT license. Check the repository's LICENSE file before commercial use.