()
| 425 | // --------------------------------------------------------------------------- |
| 426 | |
| 427 | function captureWarnLogger() { |
| 428 | const warns = []; |
| 429 | return { |
| 430 | warns, |
| 431 | logger: { |
| 432 | info: () => {}, |
| 433 | log: () => {}, |
| 434 | warn: (msg) => warns.push(String(msg)), |
| 435 | error: () => {}, |
| 436 | debug: () => {}, |
| 437 | }, |
| 438 | }; |
| 439 | } |
| 440 | |
| 441 | test('lifecycle ack: ok=true clears the state file', async () => { |
| 442 | const originalFetch = global.fetch; |
no outgoing calls
no test coverage detected