forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / development / web / nodejs / use-correct-env-in-tests.patch
blob070d0e1ddfc3447fdcb0895e11207250e15f6aaa
1 `/usr/bin/env` is not available.
3 --- old/test/parallel/test-child-process-default-options.js
4 +++ new/test/parallel/test-child-process-default-options.js
5 @@ -35 +35 @@ if (isWindows) {
6 - child = spawn('/usr/bin/env', [], {});
7 + child = spawn('env', [], {});
8 --- old/test/parallel/test-child-process-env.js
9 +++ new/test/parallel/test-child-process-env.js
10 @@ -51 +51 @@ if (isWindows) {
11 - child = spawn('/usr/bin/env', [], { env });
12 + child = spawn('env', [], { env });
13 --- old/test/parallel/test-child-process-exec-env.js
14 +++ new/test/parallel/test-child-process-exec-env.js
15 @@ -47 +47 @@ if (!isWindows) {
16 - child = exec('/usr/bin/env', { env: { 'HELLO': 'WORLD' } }, after);
17 + child = exec('env', { env: { 'HELLO': 'WORLD' } }, after);