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

Skip to content

attachmentsDir ​

  • Type: string
  • Default: '.vitest-attachments'

Directory path for storing attachments created by context.annotate relative to the project root.