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

Function render

graph-ui/src/settings/SettingsPanel.test.tsx:68–88  ·  view source on GitHub ↗
(overrides: Partial<SettingsPanelProps> = {})

Source from the content-addressed store, hash-verified

66});
67
68async function render(overrides: Partial<SettingsPanelProps> = {}): Promise<SettingsPanelProps> {
69 const props: SettingsPanelProps = {
70 project: 'atlas-sample',
71 state: 'ready',
72 facts: FACTS,
73 router: true,
74 models: MODELS,
75 selectedModel: 'MiniCPM5-1B-Q4_K_M',
76 onSelectModel: vi.fn(),
77 onRefresh: vi.fn(),
78 display: DEFAULT_GRAPH_DISPLAY,
79 experimentalAgents: true,
80 onDisplay: vi.fn(),
81 onClose: vi.fn(),
82 ...overrides,
83 };
84 await act(async () => {
85 root.render(<SettingsPanel {...props} />);
86 });
87 return props;
88}
89
90const find = (testId: string): Element | null =>
91 container.querySelector(`[data-testid="${testId}"]`);

Callers 1

Calls 1

renderMethod · 0.65

Tested by

no test coverage detected