(ms)
| 472 | } |
| 473 | |
| 474 | function delay(ms) { |
| 475 | return new Promise((resolve) => setTimeout(resolve, ms)); |
| 476 | } |
| 477 | |
| 478 | async function waitFor(predicate, { timeoutMs = 2_000, intervalMs = 10 } = {}) { |
| 479 | const deadline = Date.now() + timeoutMs; |
no outgoing calls
no test coverage detected