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 f80a517 commit 134ddadCopy full SHA for 134ddad
packages/vitest-pool-workers/test/helpers.ts
@@ -73,7 +73,9 @@ function wrap(proc: childProcess.ChildProcess): Process {
73
return stripAnsi(stderr);
74
},
75
get exitCode() {
76
- return closePromise.then(([exitCode]) => exitCode ?? -1);
+ return closePromise.then(
77
+ ([exitCode, signal]) => exitCode ?? signal ?? -1
78
+ );
79
80
};
81
}
0 commit comments