* drainPendingTimers just runs pending timers wrapped in act() to avoid * getting warnings from react about side effects that happen async. * * This can be used whenever a setTimeout(), setInterval() or async operation is used * which triggers a state update.
()
| 3763 | * which triggers a state update. |
| 3764 | */ |
| 3765 | function drainPendingTimers() { |
| 3766 | return act(() => jest.runOnlyPendingTimers()); |
| 3767 | } |
| 3768 | |
| 3769 | /** |
| 3770 | * focusWindow triggers focus on the window |
no outgoing calls
no test coverage detected
searching dependent graphs…