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

Function render

graph-ui/src/projects/ProjectsPanel.test.tsx:119–133  ·  view source on GitHub ↗
(overrides: Partial<ProjectsPanelProps> = {})

Source from the content-addressed store, hash-verified

117}
118
119async function render(overrides: Partial<ProjectsPanelProps> = {}): Promise<ProjectsPanelProps> {
120 const props: ProjectsPanelProps = {
121 project: 'atlas-sample',
122 source: fakeSource(),
123 onOpenProject: vi.fn(),
124 onClose: vi.fn(),
125 pollMs: 1,
126 ...overrides,
127 };
128 await act(async () => {
129 root.render(<ProjectsPanel {...props} />);
130 });
131 await settle();
132 return props;
133}
134
135const byTestId = (id: string): HTMLElement | null => container.querySelector(`[data-testid="${id}"]`);
136const allByTestId = (id: string): HTMLElement[] => [...container.querySelectorAll<HTMLElement>(`[data-testid="${id}"]`)];

Callers 1

Calls 3

fakeSourceFunction · 0.70
settleFunction · 0.70
renderMethod · 0.65

Tested by

no test coverage detected