()
| 47 | { interval = DEFAULT_INTERVAL, timeout = DEFAULT_TIMEOUT }: WaitForOptions = {} |
| 48 | ) => { |
| 49 | const safeCallback = () => { |
| 50 | try { |
| 51 | return callback() |
| 52 | } catch (error: unknown) { |
| 53 | return false |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | const result = await wait(safeCallback, { interval, timeout }) |
| 58 | if (!result && timeout) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…