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

Function spawnCopyDeepSync

tools/test-npm-package.js:31–37  ·  view source on GitHub ↗
(source, destination)

Source from the content-addressed store, hash-verified

29const nodePath = path.dirname(process.execPath);
30
31function spawnCopyDeepSync(source, destination) {
32 if (common.isWindows) {
33 mkdirSync(destination); // Prevent interactive prompt
34 return spawnSync('xcopy.exe', ['/E', source, destination]);
35 }
36 return spawnSync('cp', ['-r', `${source}/`, destination]);
37}
38
39function runNPMPackageTests({ srcDir, install, rebuild, testArgs, logfile }) {
40 // Make sure we don't conflict with concurrent test runs

Callers 1

runNPMPackageTestsFunction · 0.85

Calls 2

mkdirSyncFunction · 0.50
spawnSyncFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…