Type Alias: RunOptions
Documentation / @wtf/project-wpt / run / RunOptions
type RunOptions = object;Defined in: packages/project-wpt/src/run.ts:54
How a test file runs.
Properties
files
readonly files: Pick<WptFiles, "readFile" | "readBytes">;Defined in: packages/project-wpt/src/run.ts:65
The file system the checkout is read by.
folder
readonly folder: string;Defined in: packages/project-wpt/src/run.ts:67
The folder of the checkout of the WPT, as ./checkout gives it.
globals?
readonly optional globals?: (file) => Globals;Defined in: packages/project-wpt/src/run.ts:69
The globals the file’s context has besides its built-ins: the implementation under test.
Parameters
| Parameter | Type |
|---|---|
file | WptFile |
Returns
platform
readonly platform: RunPlatform;Defined in: packages/project-wpt/src/run.ts:56
The platform whose timers the file’s timers, and the file’s time, run by.
realm
readonly realm: CreateRealm;Defined in: packages/project-wpt/src/run.ts:58
Makes the realm the file runs in: in Node, nodeRealm of ./node, a node:vm context.
rejections
readonly rejections: HoldRejections;Defined in: packages/project-wpt/src/run.ts:63
Gives a listener each rejection no one handles, until it is stopped: in Node,
nodeRejections of ./node.
timeout?
readonly optional timeout?: number;Defined in: packages/project-wpt/src/run.ts:71
How long it may take, in milliseconds: TIMEOUT, or LONG_TIMEOUT if long.
