@jsenv/test 3.5.4 → 3.5.6

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.
@@ -5464,9 +5464,9 @@ const pingServer = async (url) => {
5464
5464
 
5465
5465
  const startServerUsingCommand = async (
5466
5466
  webServer,
5467
- { args = [], signal, allocatedMs, logger, teardownCallbackSet, shell = true },
5467
+ { signal, allocatedMs, logger, teardownCallbackSet, shell = true },
5468
5468
  ) => {
5469
- const spawnedProcess = spawn(webServer.command, args, {
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/test",
3
- "version": "3.5.4",
3
+ "version": "3.5.6",
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.4",
42
+ "@jsenv/filesystem": "4.10.5",
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
- { args = [], signal, allocatedMs, logger, teardownCallbackSet, shell = true },
7
+ { signal, allocatedMs, logger, teardownCallbackSet, shell = true },
8
8
  ) => {
9
- const spawnedProcess = spawn(webServer.command, args, {
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