(label: string)
| 14 | indexJobs: vi.fn().mockResolvedValue([{ slot: 1, status: 'indexing', path: '/repo', error: '' }]), |
| 15 | }); |
| 16 | const click = async (label: string) => { |
| 17 | const button = [...container.querySelectorAll('button')].find((entry) => entry.textContent === label); |
| 18 | expect(button).toBeDefined(); |
| 19 | await act(async () => { button?.click(); }); |
| 20 | }; |
| 21 | const render = async (api = source(), onOpenProjects = vi.fn(), project = 'fixture-a', configuration?: SystemWorkspaceProps['configuration'], listProjects?: SystemWorkspaceProps['listProjects']) => { |
| 22 | await act(async () => { root.render(<SystemWorkspace api={api} onOpenProjects={onOpenProjects} pollMs={100} project={project} configuration={configuration} listProjects={listProjects} />); }); |
| 23 | return api; |
no test coverage detected