MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / flowFixture

Function flowFixture

graph-ui/src/pseudocode/FlowOverlay.test.tsx:36–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34const HERE = dirname(fileURLToPath(import.meta.url));
35
36function flowFixture(): FlowView {
37 const closure = JSON.parse(readFileSync(
38 join(HERE, '__fixtures__', 'closure-userService-create.json'),
39 'utf8',
40 )) as ClosureDocument;
41 const ir = (name: string): SemanticIR => JSON.parse(readFileSync(
42 join(HERE, '..', 'twin', '__fixtures__', `ir-${name}.json`),
43 'utf8',
44 )) as SemanticIR;
45 return buildFlowView({
46 closure,
47 irs: [ir('userService-create'), ir('createUser'), ir('listUsers'), ir('validateUser'), ir('insert')],
48 });
49}
50
51let container: HTMLDivElement;
52let root: Root;

Callers 2

propsFunction · 0.70

Calls 2

buildFlowViewFunction · 0.90
irFunction · 0.70

Tested by

no test coverage detected