Skip to content

Vitest

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 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

See also