(onClose = vi.fn())
| 37 | }); |
| 38 | |
| 39 | async function render(onClose = vi.fn()): Promise<ReturnType<typeof vi.fn>> { |
| 40 | await act(async () => { |
| 41 | root.render(<HelpOverlay onClose={onClose} />); |
| 42 | }); |
| 43 | return onClose; |
| 44 | } |
| 45 | |
| 46 | const sections = (): string[] => |
| 47 | [...container.querySelectorAll('[data-testid="atlas-help-section"]')] |
no test coverage detected