@jsenv/test 3.5.3 → 3.5.5
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
|
@@ -5466,7 +5466,7 @@ const startServerUsingCommand = async (
|
|
|
5466
5466
|
webServer,
|
|
5467
5467
|
{ signal, allocatedMs, logger, teardownCallbackSet, shell = true },
|
|
5468
5468
|
) => {
|
|
5469
|
-
const spawnedProcess = spawn(webServer.command, [], {
|
|
5469
|
+
const spawnedProcess = spawn(webServer.command, webServer.args || [], {
|
|
5470
5470
|
// On non-windows platforms, `detached: true` makes child process a leader of a new
|
|
5471
5471
|
// process group, making it possible to kill child process tree with `.kill(-pid)` command.
|
|
5472
5472
|
// @see https://nodejs.org/api/child_process.html#child_process_options_detached
|
|
@@ -5514,7 +5514,7 @@ const startServerUsingCommand = async (
|
|
|
5514
5514
|
`web server process exit exitCode=${exitCode}, exitSignal=${signal}, pid=${spawnedProcess.pid}`,
|
|
5515
5515
|
);
|
|
5516
5516
|
} else {
|
|
5517
|
-
|
|
5517
|
+
console.error(
|
|
5518
5518
|
`web server process premature exit exitCode=${exitCode}, exitSignal=${signal}, pid=${spawnedProcess.pid}
|
|
5519
5519
|
--- stderr ---
|
|
5520
5520
|
${stderr}
|
|
@@ -5619,8 +5619,8 @@ const startServerUsingModuleUrl = async (webServer, params) => {
|
|
|
5619
5619
|
return startServerUsingCommand(
|
|
5620
5620
|
{
|
|
5621
5621
|
...webServer,
|
|
5622
|
-
command: `node ${fileURLToPath(webServer.moduleUrl)}
|
|
5623
|
-
|
|
5622
|
+
command: `node ${fileURLToPath(webServer.moduleUrl)}`,
|
|
5623
|
+
args: ["--jsenv-test"],
|
|
5624
5624
|
},
|
|
5625
5625
|
params,
|
|
5626
5626
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/test",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@jsenv/abort": "4.3.0",
|
|
40
40
|
"@jsenv/ast": "6.2.17",
|
|
41
41
|
"@jsenv/exception": "1.1.3",
|
|
42
|
-
"@jsenv/filesystem": "4.10.
|
|
42
|
+
"@jsenv/filesystem": "4.10.4",
|
|
43
43
|
"@jsenv/github-check-run": "0.2.1",
|
|
44
44
|
"@jsenv/node-esm-resolution": "1.0.6",
|
|
45
45
|
"@jsenv/humanize": "1.2.8",
|
|
@@ -6,7 +6,7 @@ export const startServerUsingCommand = async (
|
|
|
6
6
|
webServer,
|
|
7
7
|
{ signal, allocatedMs, logger, teardownCallbackSet, shell = true },
|
|
8
8
|
) => {
|
|
9
|
-
const spawnedProcess = spawn(webServer.command, [], {
|
|
9
|
+
const spawnedProcess = spawn(webServer.command, webServer.args || [], {
|
|
10
10
|
// On non-windows platforms, `detached: true` makes child process a leader of a new
|
|
11
11
|
// process group, making it possible to kill child process tree with `.kill(-pid)` command.
|
|
12
12
|
// @see https://nodejs.org/api/child_process.html#child_process_options_detached
|
|
@@ -54,7 +54,7 @@ export const startServerUsingCommand = async (
|
|
|
54
54
|
`web server process exit exitCode=${exitCode}, exitSignal=${signal}, pid=${spawnedProcess.pid}`,
|
|
55
55
|
);
|
|
56
56
|
} else {
|
|
57
|
-
|
|
57
|
+
console.error(
|
|
58
58
|
`web server process premature exit exitCode=${exitCode}, exitSignal=${signal}, pid=${spawnedProcess.pid}
|
|
59
59
|
--- stderr ---
|
|
60
60
|
${stderr}
|
|
@@ -10,8 +10,8 @@ export const startServerUsingModuleUrl = async (webServer, params) => {
|
|
|
10
10
|
return startServerUsingCommand(
|
|
11
11
|
{
|
|
12
12
|
...webServer,
|
|
13
|
-
command: `node ${fileURLToPath(webServer.moduleUrl)}
|
|
14
|
-
|
|
13
|
+
command: `node ${fileURLToPath(webServer.moduleUrl)}`,
|
|
14
|
+
args: ["--jsenv-test"],
|
|
15
15
|
},
|
|
16
16
|
params,
|
|
17
17
|
);
|