MerchantryTidbits

frontend-tooling / library

Vitest

Capability: Vitest

Use it when

  • run fast unit and component tests in a Vite or TypeScript project
  • reuse Vite transforms and aliases in the test environment

What it solves

Not the fit when

  • browser behavior needs browser mode or an end-to-end runner

Install

npm install --save-dev vitest

Invoke

Add a `test` script for `vitest`, write tests with its Jest-compatible API, then run watch mode locally and `vitest run` in CI.

Alternatives

No reviewed alternatives recorded yet.