MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / expectCompositionErr

Function expectCompositionErr

packages/cli/src/utils/renderArgs.test.ts:18–24  ·  view source on GitHub ↗
(result: CompositionEntryParseResult)

Source from the content-addressed store, hash-verified

16}
17
18function 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. */
27function fakeStats(kind: "file" | "directory"): Stats {

Callers 1

renderArgs.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected