FileReadertypeno test imports ittype FileReader = { read(path: string): Promise<string | undefined> };What the host gives: the text of a file, or undefined where there is none.
The file runner (0005-grc-runners FR-005), for files and configuration: the input is { path, format, select? }, the file is read by a reader the host gives, decoded as json, lines or text, and a value is selected by a JSON pointer (RFC 6901). A file that is not there is a problem, not a value.
FileReadertypeno test imports ittype FileReader = { read(path: string): Promise<string | undefined> };What the host gives: the text of a file, or undefined where there is none.
selectPointerfunctionfunction selectPointer(value: Json, pointer: string): Result<Json, string>The value a JSON pointer names in value, or why it names none.
fileRunnerfunctionfunction fileRunner(reader: FileReader): RunnerThe file runner over a reader.