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

Function node

graph-ui/src/why/SelectionContext.branch.test.tsx:22–22  ·  view source on GitHub ↗
(id: number, extra: Partial<GraphNode>)

Source from the content-addressed store, hash-verified

20afterEach(async () => { await act(async () => root.unmount()); host.remove(); });
21
22const node = (id: number, extra: Partial<GraphNode>): GraphNode => ({ id, x: 0, y: 0, z: 0, size: 1, color: '#fff', label: 'Folder', name: `n${id}`, ...extra });
23const project = node(1, { label: 'Project', name: 'django-demo', qualified_name: 'django-demo' });
24const branch = node(2, { label: 'Branch', name: 'DETACHED', qualified_name: 'django-demo.__branch__.detached' });
25const github = node(4, { name: '.github', qualified_name: 'django-demo..github', file_path: '.github' });

Calls

no outgoing calls

Tested by

no test coverage detected