Skip to content

Type Alias: WptFiles

Documentation / @wtf/project-wpt / index / WptFiles

type WptFiles = object;

Defined in: packages/project-wpt/src/index.ts:78

The file system the runner reads the checkout and the expectations by, of absolute paths, each read a promise: nodeFiles of ./node, in Node. An entry that is not there is a NotFoundError, and a file create finds there an InvalidModificationError, each a DOMException, as the WHATWG File System Standard has them.

Properties

create

readonly create: (path, data) => Promise<void>;

Defined in: packages/project-wpt/src/index.ts:86

The file at path made, where no other call made it first: of the lock of a checkout.

Parameters

ParameterType
pathstring
datastring

Returns

Promise<void>


exists

readonly exists: (path) => Promise<boolean>;

Defined in: packages/project-wpt/src/index.ts:84

Parameters

ParameterType
pathstring

Returns

Promise<boolean>


mkdir

readonly mkdir: (path) => Promise<void>;

Defined in: packages/project-wpt/src/index.ts:90

The folder at path made, and each folder above it that is not there.

Parameters

ParameterType
pathstring

Returns

Promise<void>


modified

readonly modified: (path) => Promise<number>;

Defined in: packages/project-wpt/src/index.ts:88

When the file at path last changed, in milliseconds since the epoch.

Parameters

ParameterType
pathstring

Returns

Promise<number>


readBytes

readonly readBytes: (path) => Promise<Uint8Array>;

Defined in: packages/project-wpt/src/index.ts:80

Parameters

ParameterType
pathstring

Returns

Promise<Uint8Array>


readdir

readonly readdir: (path) => Promise<readonly object[]>;

Defined in: packages/project-wpt/src/index.ts:81

Parameters

ParameterType
pathstring

Returns

Promise<readonly object[]>


readFile

readonly readFile: (path) => Promise<string>;

Defined in: packages/project-wpt/src/index.ts:79

Parameters

ParameterType
pathstring

Returns

Promise<string>


remove

readonly remove: (path) => Promise<void>;

Defined in: packages/project-wpt/src/index.ts:92

The entry at path removed, a folder with all it holds.

Parameters

ParameterType
pathstring

Returns

Promise<void>