Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0005-anyfs-conformance FR-001
The small kit the cases are written with: a failure that says what differed, the bytes of a text, the paths and revisions a case names, and the narrowing of a store to the capabilities a case needs. The kit imports nothing outside the library, so the suite can run in the tests of any backend.
Source: commons/anyfs/src/logical/conformance/kit.ts
0 of 3 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.
Casetypeno test imports ittype Case = {
readonly id: string;
readonly title: string;
readonly needs: readonly Capability[];
readonly run: (make: Make) => Promise<void>;
};
A case: its id, what it says, the capabilities it needs and the code.
ConformanceFailureclassno test imports itclass ConformanceFailure extends Error
A case failed: the sentence says what differed.
| Member | Type | What it is |
|---|
name | string | |
message | string | |
stack? | string | |
cause? | unknown | |
Maketypeno test imports ittype Make = () => Promise<Store<CoreCapability>>;
What a case runs against: a function that makes a new, empty store of at least the core capabilities.