Type Alias: WptSuiteOptions
Documentation / @wtf/project-wpt / suite / WptSuiteOptions
type WptSuiteOptions = WptPaths & object;Defined in: packages/project-wpt/src/suite.ts:53
What a suite runs, and against what.
Type Declaration
| Name | Type | Description | Defined in |
|---|---|---|---|
commit | string | The commit of the WPT the suite’s tests are pinned to, its full hash: what moves it is a change of the repo, reviewed. | packages/project-wpt/src/suite.ts:58 |
expectations? | | string | URL | Expectations | The known failures of the suite, or of its run: a JSON file, by its path from root or its URL, or the object; none by default. | packages/project-wpt/src/suite.ts:75 |
globals()? | (file) => Globals | The globals of each test file’s context, over its built-ins: the implementation under test, made anew of each file. undefined of a name takes a built-in out. | packages/project-wpt/src/suite.ts:65 |
repository? | string | The git repository of the WPT, as a mirror: the WPT’s own on GitHub by default. | packages/project-wpt/src/suite.ts:60 |
root? | string | URL | The folder of the project, whose node_modules/.cache/wpt keeps the checkouts, and from which a path of expectations is read: the platform’s working folder by default. | packages/project-wpt/src/suite.ts:80 |
run? | string | The name of the run, of a suite run against more than one implementation, each a wptSuite of its own, each of its own expectations: doubles, node. Its tests are named by it. | packages/project-wpt/src/suite.ts:70 |
timeout? | number | How long each file may take, in milliseconds, in place of the WPT’s 10 s, or 60 s if long. | packages/project-wpt/src/suite.ts:82 |
