MCPcopy Create free account
hub / github.com/ehmicky/log-process-errors / startExitLogging

Function startExitLogging

src/helpers/exit.test.js:41–45  ·  view source on GitHub ↗
(opts)

Source from the content-addressed store, hash-verified

39
40// Start logging and stub `process.exit()`
41export const startExitLogging = (opts) => {
42 stub(process, 'exit')
43 const { stopLogging } = startLogging(opts)
44 return stopExitLogging.bind(undefined, stopLogging)
45}
46
47const stopExitLogging = (stopLogging) => {
48 stopLogging()

Callers 3

exit.test.jsFile · 0.90
startProcessLoggingFunction · 0.85
startClockLoggingFunction · 0.85

Calls 1

startLoggingFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…