Function
expectCompositionErr
(result: CompositionEntryParseResult)
Source from the content-addressed store, hash-verified
| 16 | } |
| 17 | |
| 18 | function expectCompositionErr(result: CompositionEntryParseResult): { |
| 19 | kind: string; |
| 20 | entryFile: string; |
| 21 | } { |
| 22 | if (result.ok) throw new Error(`expected error, got value=${result.value}`); |
| 23 | return result.error; |
| 24 | } |
| 25 | |
| 26 | /** Build a fake `Stats` for the in-memory stat adapter. */ |
| 27 | function fakeStats(kind: "file" | "directory"): Stats { |
Tested by
no test coverage detected