KC's Workspace
    Preparing search index...

    Interface TestArtifactBaseExperimental

    Base interface for all test artifacts.

    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.

    interface TestArtifactBase {
        attachments?: TestAttachment[];
        location?: TestArtifactLocation;
    }

    Hierarchy (View Summary)

    Index

    Properties

    attachments?: TestAttachment[]

    File or data attachments associated with this artifact

    Source location where this artifact was created