
Vitest | Next Generation testing framework
Next generation testing framework powered by ViteVitest Next Generation Testing Framework A Vite-native testing framework. It's fast!
Browser Mode | Guide | Vitest
Browser Mode This page provides information about the browser mode feature in the Vitest API, which allows you to run your tests in the browser natively, providing access to browser globals …
Command Line Interface | Guide | Vitest
Command Line Interface Commands vitest Start Vitest in the current directory. Will enter the watch mode in development environment and run mode in CI (or non-interactive terminal) …
Configuring Vitest | Vitest
Next generation testing framework powered by ViteConfiguring Vitest If you are using Vite and have a vite.config file, Vitest will read it to match with the plugins and setup as your Vite app. If …
Test Environment | Guide | Vitest
WARNING "Environments" exist only when running tests in Node.js. browser is not considered an environment in Vitest. If you wish to run part of your tests using Browser Mode, you can create …
Snapshot | Guide | Vitest
Learn Snapshot by video from Vue School Snapshot tests are a very useful tool whenever you want to make sure the output of your functions does not change unexpectedly. When using …
Features | Guide | Vitest
Component testing for Vue, React, Svelte, Lit, Marko and more
Test Projects | Guide | Vitest
Vitest provides a way to define multiple project configurations within a single Vitest process. This feature is particularly useful for monorepo setups but can also be used to run tests with …
Getting Started | Guide | Vitest v1.6
It is recommended that you install a copy of vitest in your package.json, using one of the methods listed above. However, if you would prefer to run vitest directly, you can use npx vitest (the npx …
Vi | Vitest
If the factory function is defined, all imports will return its result. Vitest calls factory only once and caches results for all subsequent imports until vi.unmock or vi.doUnmock is called. Unlike in …