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

Function open

graph-ui/src/agents/AgentSetup.test.tsx:9–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7beforeEach(() => { (globalThis as unknown as Record<string, unknown>).IS_REACT_ACT_ENVIRONMENT = true; host = document.createElement('div'); document.body.append(host); root = createRoot(host); });
8afterEach(async () => { await act(async () => root.unmount()); host.remove(); vi.restoreAllMocks(); });
9const open = async () => { await act(async () => { const details = host.querySelector('details')!; details.open = true; details.dispatchEvent(new Event('toggle')); }); };
10it('exposes actionable setup without querying or changing anything until opened', async () => {
11 const api = { repoInfo: vi.fn().mockResolvedValue({ rootPath: '/repo with spaces', branch: 'main', remoteUrl: '' }) };
12 await act(async () => root.render(<AgentSetup api={api} project="project-a" port={9749} />));

Callers 2

PseudocodeViewFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected