Vitest logo


A Vite-native unit test framework. It's fast!
+ 1

What is Vitest?

It is a blazing fast unit test framework powered by Vite. It aims to position itself as the Test Runner of choice for Vite projects, and as a solid alternative even for projects not using Vite.
Vitest is a tool in the Testing Frameworks category of a tech stack.
Vitest is an open source tool with 12K GitHub stars and 1K GitHub forks. Here’s a link to Vitest's open source repository on GitHub

Who uses Vitest?

34 companies reportedly use Vitest in their tech stacks, including SplitC, Voiceflow, and yaesu.

71 developers on StackShare have stated that they use Vitest.

Vitest Integrations

Visual Studio Code, TypeScript, IntelliJ IDEA, WebStorm, and Jest are some of the popular tools that integrate with Vitest. Here's a list of all 6 tools that integrate with Vitest.

Vitest's Features

  • Vite's config, transformers, resolvers, and plugins
  • Use the same setup from your app to run the tests!
  • Smart & instant watch mode, like HMR for tests!
  • Components testing for Vue, React, Svelte, Lit and more
  • Out-of-box TypeScript / JSX support
  • ESM first, top level await
  • Workers multi-threading via tinypool
  • Filtering, timeouts, concurrent for suite and tests
  • Jest-compatible Snapshot
  • Chai built-in for assertions + Jest expect compatible APIs
  • Tinyspy built-in for mocking
  • happy-dom or jsdom for DOM mocking
  • Native code coverage via c8
  • Rust like in-source testing

Vitest Alternatives & Comparisons

What are some alternatives to Vitest?
JavaScript is most known as the scripting language for Web pages, but used in many non-browser environments as well such as node.js or Apache CouchDB. It is a prototype-based, multi-paradigm scripting language that is dynamic,and supports object-oriented, imperative, and functional programming styles.
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
GitHub is the best place to share code with friends, co-workers, classmates, and complete strangers. Over three million people use GitHub to build amazing things together.
Python is a general purpose programming language created by Guido Van Rossum. Python is most praised for its elegant syntax and readable code, if you are just beginning your programming career python suits you best.
jQuery is a cross-platform JavaScript library designed to simplify the client-side scripting of HTML.
See all alternatives
Related Comparisons
No related comparisons found

Vitest's Followers
36 developers follow Vitest to keep up with related blogs and decisions.