@jsenv/test 3.5.3 → 3.5.4
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
|
@@ -5464,9 +5464,9 @@ const pingServer = async (url) => {
|
|
|
5464
5464
|
|
|
5465
5465
|
const startServerUsingCommand = async (
|
|
5466
5466
|
webServer,
|
|
5467
|
-
{ signal, allocatedMs, logger, teardownCallbackSet, shell = true },
|
|
5467
|
+
{ args = [], signal, allocatedMs, logger, teardownCallbackSet, shell = true },
|
|
5468
5468
|
) => {
|
|
5469
|
-
const spawnedProcess = spawn(webServer.command,
|
|
5469
|
+
const spawnedProcess = spawn(webServer.command, 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
|
|
@@ -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.4",
|
|
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",
|
|
@@ -4,9 +4,9 @@ import { pingServer } from "../../helpers/ping_server.js";
|
|
|
4
4
|
|
|
5
5
|
export const startServerUsingCommand = async (
|
|
6
6
|
webServer,
|
|
7
|
-
{ signal, allocatedMs, logger, teardownCallbackSet, shell = true },
|
|
7
|
+
{ args = [], signal, allocatedMs, logger, teardownCallbackSet, shell = true },
|
|
8
8
|
) => {
|
|
9
|
-
const spawnedProcess = spawn(webServer.command,
|
|
9
|
+
const spawnedProcess = spawn(webServer.command, 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
|
|
@@ -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
|
);
|