Skip to content

attachmentsDir

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

Directory path for storing file attachments created by context.annotate.

This option is resolved relative to the root Vitest config. When using projects, all projects share the same attachmentsDir; it cannot be configured per project.