Skip to content

Type Alias: WptFile

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

type WptFile = WptTest & object;

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

A test file as its globals are made: its path and variant, its address as the WPT serves it, and a fetch of the files of the checkout by that address, for a test that loads its data, as url/url-constructor.any.js does.

Type Declaration

NameTypeDescriptionDefined in
fetch()(input, init?) => Promise<Response>A fetch of the files of the checkout, each a Response, 404 of one not fetched; a URL of another origin rejects. Map it in as fetch where a test needs one.packages/project-wpt/src/index.ts:146
urlURLIts address: http://web-platform.test:8000/encoding/api-basics.any.js, with the variant.packages/project-wpt/src/index.ts:141