Skip to content

Function: readExpectations()

Documentation / @wtf/project-wpt / expectations / readExpectations

function readExpectations(from, __namedParameters): Promise<ReadExpectations>;

Defined in: packages/project-wpt/src/expectations.ts:65

The expectations of a suite: of a JSON file, by its path or its URL, or an object, as they are; none of undefined. What is not valid is an InvalidExpectationsError.

Parameters

ParameterType
from| string | URL | Readonly<Record<string, FileExpectation>> | undefined
__namedParameters{ files: Pick<WptFiles, "readFile">; }
__namedParameters.filesPick<WptFiles, "readFile">

Returns

Promise<ReadExpectations>