(timeToBlockThread: number, timerType: TimerType)
| 393 | const WAIT_FOR_TIMEOUT = WAIT_FOR_INTERVAL * 5; |
| 394 | |
| 395 | const blockThread = (timeToBlockThread: number, timerType: TimerType): void => { |
| 396 | jest.useRealTimers(); |
| 397 | const end = Date.now() + timeToBlockThread; |
| 398 | |
| 399 | while (Date.now() < end) { |
| 400 | // do nothing |
| 401 | } |
| 402 | |
| 403 | setupTimeType(timerType); |
| 404 | }; |
| 405 | |
| 406 | const mockErrorFn = jest.fn(() => { |
| 407 | // Wait 2 times interval so that check time is longer than interval |
no test coverage detected
searching dependent graphs…