( requestAnimationFrameTimeout = REQUEST_ANIMATION_FRAME_TIMEOUT, )
| 21 | export const REQUEST_ANIMATION_FRAME_TIMEOUT = 15; |
| 22 | |
| 23 | export function waitForRequestAnimationFrame( |
| 24 | requestAnimationFrameTimeout = REQUEST_ANIMATION_FRAME_TIMEOUT, |
| 25 | ) { |
| 26 | jest.advanceTimersByTime(requestAnimationFrameTimeout + 1); |
| 27 | } |
| 28 | |
| 29 | export function waitForPromisesToResolve() { |
| 30 | return new Promise((resolve) => setImmediate(resolve)); |
no outgoing calls
searching dependent graphs…