(read: () => Promise<number>, active = true, paused = false)
| 14 | } |
| 15 | const state = () => JSON.parse(container.querySelector('output')?.textContent ?? '{}'); |
| 16 | const render = async (read: () => Promise<number>, active = true, paused = false) => { |
| 17 | await act(async () => { root.render(<Harness read={read} active={active} paused={paused} />); }); |
| 18 | }; |
| 19 | const advance = async (milliseconds: number) => { await act(async () => { await vi.advanceTimersByTimeAsync(milliseconds); }); }; |
| 20 | const visible = async (next: DocumentVisibilityState) => { |
| 21 | visibility = next; |
no test coverage detected