Skip to content

Commit bb0f717

Browse files
committed
fixup! src: fix escaping of single quotes in task runner
1 parent 6786cf0 commit bb0f717

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

test/message/node_run_non_existent.out

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Available scripts are:
1010
custom-env-windows: custom-env.bat
1111
path-env: path-env
1212
path-env-windows: path-env.bat
13+
repeat-args: node repeat-args.js
1314
special-env-variables: special-env-variables
1415
special-env-variables-windows: special-env-variables.bat
1516
pwd: pwd

test/parallel/test-node-run.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ common.requireNoPackageJSONAbove();
55

66
const { it, describe } = require('node:test');
77
const assert = require('node:assert');
8+
const path = require('node:path');
89

910
const fixtures = require('../common/fixtures');
1011
const envSuffix = common.isWindows ? '-windows' : '';
@@ -160,7 +161,10 @@ describe('node --run [command]', () => {
160161
const child = await common.spawnPromisified(
161162
process.execPath,
162163
[ '--run', 'repeat-args', '--', 'I think therefore I\'m'],
163-
{ cwd: fixtures.path('run-script') },
164+
{
165+
cwd: fixtures.path('run-script'),
166+
env: { ...process.env, PATH: `${path.dirname(process.execPath)}:${process.env.PATH}` },
167+
},
164168
);
165169
assert.deepStrictEqual(child, {
166170
stdout: `["I think therefore I'm"]\n`,

0 commit comments

Comments
 (0)