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

Function render

graph-ui/src/search/SearchOverlay.test.tsx:28–50  ·  view source on GitHub ↗
(onChoose: (index: number) => void)

Source from the content-addressed store, hash-verified

26});
27
28async function render(onChoose: (index: number) => void): Promise<HTMLButtonElement> {
29 await act(async () => {
30 root.render(
31 <SearchOverlay
32 headline="one result"
33 rows={[{
34 key: 'createUser',
35 name: 'createUser',
36 path: 'src/services/userService.ts',
37 line: 'L23',
38 matched: 'user',
39 source: 'index',
40 }]}
41 selected={0}
42 status="ready"
43 message=""
44 onChoose={onChoose}
45 onPoint={() => undefined}
46 />,
47 );
48 });
49 return container.querySelector('[data-testid="atlas-search-row"]') as HTMLButtonElement;
50}
51
52describe('die Tastatur am Suchtreffer selbst', () => {
53 it.each([

Callers 1

Calls 1

renderMethod · 0.65

Tested by

no test coverage detected