(eventName, opts)
| 9 | // Start logging and stub `process.exit()`, while a specific process event |
| 10 | // handler is being used |
| 11 | export const startProcessLogging = (eventName, opts) => { |
| 12 | const processHandler = setProcessEvent(eventName) |
| 13 | const stopLogging = startExitLogging(opts) |
| 14 | return stopProcessLogging.bind( |
| 15 | undefined, |
| 16 | eventName, |
| 17 | stopLogging, |
| 18 | processHandler, |
| 19 | ) |
| 20 | } |
| 21 | |
| 22 | const stopProcessLogging = (eventName, stopLogging, processHandler) => { |
| 23 | stopLogging() |
no test coverage detected
searching dependent graphs…