Skip to content

Commit 1e772a1

Browse files
committed
test_runner: change default behavior of hookSignal option
1 parent 9ae6901 commit 1e772a1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/internal/test_runner/harness.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ function setupProcessState(root, globalOptions) {
297297
process.on('uncaughtException', exceptionHandler);
298298
process.on('unhandledRejection', rejectionHandler);
299299
process.on('beforeExit', exitHandler);
300-
if (globalOptions.isTestRunner || globalOptions.hookSignal === true) {
300+
if (globalOptions.isTestRunner && globalOptions.hookSignal !== true) {
301301
process.on('SIGINT', terminationHandler);
302302
process.on('SIGTERM', terminationHandler);
303303
}

lib/internal/test_runner/runner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ function run(options = kEmptyObject) {
593593
argv = [],
594594
cwd = process.cwd(),
595595
rerunFailuresFilePath,
596-
hookSignal = false,
596+
hookSignal = true,
597597
} = options;
598598

599599
if (files != null) {

0 commit comments

Comments
 (0)