···33outline: deep
44---
5566-# attachmentsDir
66+# attachmentsDir <CRoot />
7788- **Type:** `string`
99- **Default:** `'.vitest/attachments'`
10101111-Directory path for storing attachments created by [`context.annotate`](/guide/test-context#annotate) relative to the project root.
1111+Directory path for storing file attachments created by [`context.annotate`](/guide/test-context#annotate).
1212+1313+This option is resolved relative to the root Vitest config. When using [`projects`](/guide/projects), all projects share the same `attachmentsDir`; it cannot be configured per project.
+1
docs/guide/projects.md
···289289- `coverage`: coverage is done for the whole process
290290- `reporters`: only root-level reporters can be supported
291291- `resolveSnapshotPath`: only root-level resolver is respected
292292+- `attachmentsDir`: attachments are stored in one root-level directory shared by all projects
292293- all other options that don't affect test runners
293294294295All configuration options that are not supported inside a project configuration are marked with a <CRoot /> icon next to their name. They can only be defined once in the root config file.