@jsenv/test 3.5.12 → 3.5.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/jsenv_test.js
CHANGED
|
@@ -4719,7 +4719,11 @@ const renderExecutionLabel = (execution, logOptions) => {
|
|
|
4719
4719
|
}
|
|
4720
4720
|
}
|
|
4721
4721
|
// intersummary
|
|
4722
|
-
if (
|
|
4722
|
+
if (
|
|
4723
|
+
logOptions.intermediateSummary ||
|
|
4724
|
+
execution.counters.timedout ||
|
|
4725
|
+
execution.counters.failed
|
|
4726
|
+
) {
|
|
4723
4727
|
let intermediateSummary = "";
|
|
4724
4728
|
intermediateSummary += renderStatusRepartition(execution.countersInOrder);
|
|
4725
4729
|
label += ` (${intermediateSummary})`;
|
|
@@ -8435,7 +8439,14 @@ const nodeChildProcess = ({
|
|
|
8435
8439
|
// There is no satisfying solution to this problem so we stick to the basic
|
|
8436
8440
|
// childProcess.kill()
|
|
8437
8441
|
if (process.platform === "win32") {
|
|
8438
|
-
|
|
8442
|
+
try {
|
|
8443
|
+
childProcess.kill();
|
|
8444
|
+
} catch (e) {
|
|
8445
|
+
if (e.code === "EPERM") {
|
|
8446
|
+
return;
|
|
8447
|
+
}
|
|
8448
|
+
throw e;
|
|
8449
|
+
}
|
|
8439
8450
|
return;
|
|
8440
8451
|
}
|
|
8441
8452
|
if (gracefulStopAllocatedMs) {
|
package/package.json
CHANGED
|
@@ -476,7 +476,11 @@ const renderExecutionLabel = (execution, logOptions) => {
|
|
|
476
476
|
}
|
|
477
477
|
}
|
|
478
478
|
// intersummary
|
|
479
|
-
if (
|
|
479
|
+
if (
|
|
480
|
+
logOptions.intermediateSummary ||
|
|
481
|
+
execution.counters.timedout ||
|
|
482
|
+
execution.counters.failed
|
|
483
|
+
) {
|
|
480
484
|
let intermediateSummary = "";
|
|
481
485
|
intermediateSummary += renderStatusRepartition(execution.countersInOrder);
|
|
482
486
|
label += ` (${intermediateSummary})`;
|
|
@@ -3,7 +3,6 @@ import { ANSI, createDetailedMessage, UNICODE } from "@jsenv/humanize";
|
|
|
3
3
|
import { memoize } from "@jsenv/utils/src/memoize/memoize.js";
|
|
4
4
|
import { fork } from "node:child_process";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
6
|
-
|
|
7
6
|
import { createChildExecOptions } from "./child_exec_options.js";
|
|
8
7
|
import { ExecOptions } from "./exec_options.js";
|
|
9
8
|
import { EXIT_CODES } from "./exit_codes.js";
|
|
@@ -197,7 +196,14 @@ export const nodeChildProcess = ({
|
|
|
197
196
|
// There is no satisfying solution to this problem so we stick to the basic
|
|
198
197
|
// childProcess.kill()
|
|
199
198
|
if (process.platform === "win32") {
|
|
200
|
-
|
|
199
|
+
try {
|
|
200
|
+
childProcess.kill();
|
|
201
|
+
} catch (e) {
|
|
202
|
+
if (e.code === "EPERM") {
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
205
|
+
throw e;
|
|
206
|
+
}
|
|
201
207
|
return;
|
|
202
208
|
}
|
|
203
209
|
if (gracefulStopAllocatedMs) {
|