跳到主要内容

Command Line Interface

Commands

vitest

You can pass an additional argument as the filter of the test files to run

Will run only the test file that contains foobar in their paths

vitest foobar

vitest run

Perform a single run without watch mode

Options

  • -t, --testNamePattern <pattern>
  • --testTimeout <timeout>
  • --exclude <glob>