(opts)
| 26 | |
| 27 | // Start logging and stub `process.exit()` and `setTimeout()` |
| 28 | export const startClockLogging = (opts) => { |
| 29 | const clock = fakeTimers.install({ toFake: ['setTimeout'] }) |
| 30 | const stopLogging = startExitLogging(opts) |
| 31 | const stopLoggingA = stopClockLogging.bind(undefined, stopLogging, clock) |
| 32 | return { clock, stopLogging: stopLoggingA } |
| 33 | } |
| 34 | |
| 35 | const stopClockLogging = (stopLogging, clock) => { |
| 36 | stopLogging() |
no test coverage detected
searching dependent graphs…