///
///
interface TestEnvironment {
fetch: typeof globalThis.fetch;
}
interface TestTargetResult {
type?: "TestResult";
outcome: Outcome;
name: string;
pointer: Pointer;
}
export interface TestResult {
type?: "TestResult";
info?: string;
outcome: Outcome;
source?: TestTargetResult;
}
export interface TestCase {
applicability?: string;
assumptions?: string;
attributedTo?: Array;
description: string;
expectations?: string;
failedCases?: Iterable>;
inapplicableCases?: Iterable>;
input: {
[I in keyof Input]: InputDescription;
};
isPartOf?: Iterable;
markdown?: string;
name: string;
passedCases?: Iterable>;
requirementReference?: Iterable<{
id: URL;
url?: URL;
}>;
run: (inputs: Input, env?: TestEnvironment) => Promise>;
slug: string;
testCases?: Iterable>;
url: URL;
uuid: string;
}
interface InputDescription {
help: string;
required?: boolean;
default?: unknown;
type?: string | string[];
rangeIncludes?: string[];
constraints?: unknown[];
}
interface TestCaseExample {
name: string;
id?: string;
input: Input;
result: TestResult;
targets?: unknown;
}
export {};
//# sourceMappingURL=test-case.d.ts.map