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

Skip to content

browser.screenshotDirectory ​

  • Type: string
  • Default: __screenshots__ in the test file directory

Path to the screenshots directory relative to the root.