()
| 7 | beforeEach(() => { (globalThis as unknown as Record<string, unknown>).IS_REACT_ACT_ENVIRONMENT = true; host = document.createElement('div'); document.body.append(host); root = createRoot(host); }); |
| 8 | afterEach(async () => { await act(async () => root.unmount()); host.remove(); vi.restoreAllMocks(); }); |
| 9 | const open = async () => { await act(async () => { const details = host.querySelector('details')!; details.open = true; details.dispatchEvent(new Event('toggle')); }); }; |
| 10 | it('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} />)); |
no outgoing calls
no test coverage detected