Extend this interface when creating custom test artifacts. Vitest automatically manages the attachments array and injects the location property to indicate where the artifact was created in your test code.
Important: when running with api.allowWrite or browser.api.allowWrite disabled, Vitest empties the attachments array on every artifact before reporting it.
Base interface for all test artifacts.
Extend this interface when creating custom test artifacts. Vitest automatically manages the
attachmentsarray and injects thelocationproperty to indicate where the artifact was created in your test code.Important: when running with
api.allowWriteorbrowser.api.allowWritedisabled, Vitest empties theattachmentsarray on every artifact before reporting it.