Skip to content
masterclass Buddy

Vitest · Command

vitest run

vitest run performs one test run without watch mode. Add a file filter to run only matching test files.

Last updated

Syntax

vitest run [filter]

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • vitest
  • vitest watch
  • vitest dev
  • vitest related
  • vitest bench
  • vitest list
  • --shard

Source: Command Line Interface | Guide | Vitest. Checked 2026-11-03.