MCPcopy Index your code
hub / github.com/nodejs/node / test

Function test

test/parallel/test-child-process-exec-any-shells-windows.js:18–24  ·  view source on GitHub ↗
(shell)

Source from the content-addressed store, hash-verified

16fs.mkdirSync(tmpPath);
17
18const test = (shell) => {
19 cp.exec('echo foo bar', { shell: shell },
20 common.mustSucceed((stdout, stderror) => {
21 assert.ok(!stderror);
22 assert.ok(stdout.includes('foo') && stdout.includes('bar'));
23 }));
24};
25const testCopy = (shellName, shellPath) => {
26 // Symlink the executable to a path with spaces, to ensure there are no issues
27 // related to quoting of argv0

Callers 2

testCopyFunction · 0.70

Calls 3

includesMethod · 0.80
execMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…