Interface AutoTestUploadedFileInput

Input data for a single uploaded file.

The id and contents keys are mutually exclusive, and exactly one of them must be set.

When id is set it must be the id of an existing file. In this case, when path is also set, the path of the existing file is updated.

When contents is set, path is also required, and a new file will be created with the given contents which will be available at the given path in the VM.

interface AutoTestUploadedFileInput {
    contents?: Uint8Array<ArrayBufferLike>;
    id?: string;
    path?: string;
}

Properties

Properties

contents?: Uint8Array<ArrayBufferLike>

The file contents.

id?: string

The id of the file.

path?: string

The path where the uploaded file will be available in the VM.