We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4ed998 commit b5bbebcCopy full SHA for b5bbebc
test/helpers/exit.js
@@ -10,7 +10,8 @@ import { startLogging } from './start.js'
10
// `process.exit()` is being stubbed
11
export const startProcessLogging = function (eventName, opts) {
12
const processHandler = setProcessEvent(eventName)
13
- const stopLogging = startExitLogging(opts)
+ stubProcessExit()
14
+ const { stopLogging } = startLogging(opts)
15
return stopProcessLogging.bind(
16
undefined,
17
eventName,
@@ -21,6 +22,7 @@ export const startProcessLogging = function (eventName, opts) {
21
22
23
const stopProcessLogging = function (eventName, stopLogging, processHandler) {
24
stopLogging()
25
+ unStubProcessExit()
26
unsetProcessEvent(eventName, processHandler)
27
}
28
0 commit comments