This documentation covers Vitest v4 (old version). For the latest version, see https://vitest.dev.

Skip to content

passWithNoTests ​

  • Type: boolean
  • Default: false
  • CLI: --passWithNoTests, --passWithNoTests=false

Vitest will not fail, if no tests will be found.