(next: DocumentVisibilityState)
| 18 | }; |
| 19 | const advance = async (milliseconds: number) => { await act(async () => { await vi.advanceTimersByTimeAsync(milliseconds); }); }; |
| 20 | const visible = async (next: DocumentVisibilityState) => { |
| 21 | visibility = next; |
| 22 | await act(async () => { document.dispatchEvent(new Event('visibilitychange')); }); |
| 23 | }; |
| 24 | |
| 25 | beforeEach(() => { |
| 26 | vi.useFakeTimers(); |
no outgoing calls
no test coverage detected