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

Function render

graph-ui/src/chat/AtlasChatPanel.test.tsx:75–102  ·  view source on GitHub ↗
(props: Partial<Parameters<typeof AtlasChatPanel>[0]> = {})

Source from the content-addressed store, hash-verified

73}
74
75async function render(props: Partial<Parameters<typeof AtlasChatPanel>[0]> = {}): Promise<{
76 onOpenCard: ReturnType<typeof vi.fn>;
77 onDepth: ReturnType<typeof vi.fn>;
78 onClear: ReturnType<typeof vi.fn>;
79 onPickCandidate: ReturnType<typeof vi.fn>;
80 onAskAgain: ReturnType<typeof vi.fn>;
81}> {
82 const onOpenCard = vi.fn();
83 const onDepth = vi.fn();
84 const onClear = vi.fn();
85 const onPickCandidate = vi.fn();
86 const onAskAgain = vi.fn();
87 await act(async () => {
88 root.render(
89 <AtlasChatPanel
90 turns={[turnOf()]}
91 depth={1}
92 onDepth={onDepth}
93 onOpenCard={onOpenCard}
94 onClear={onClear}
95 onPickCandidate={onPickCandidate}
96 onAskAgain={onAskAgain}
97 {...props}
98 />,
99 );
100 });
101 return { onOpenCard, onDepth, onClear, onPickCandidate, onAskAgain };
102}
103
104const find = (testid: string): HTMLElement | null =>
105 container.querySelector<HTMLElement>(`[data-testid="${testid}"]`);

Callers 1

Calls 2

turnOfFunction · 0.70
renderMethod · 0.65

Tested by

no test coverage detected