MCPcopy
hub / github.com/affaan-m/ECC / runProcess

Function runProcess

tests/scripts/platform-audit.test.js:138–151  ·  view source on GitHub ↗
(args = [], options = {})

Source from the content-addressed store, hash-verified

136}
137
138function runProcess(args = [], options = {}) {
139 const env = {
140 ...process.env,
141 ...(options.env || {})
142 };
143
144 return spawnSync('node', [SCRIPT, ...args], {
145 cwd: options.cwd || path.join(__dirname, '..', '..'),
146 env,
147 encoding: 'utf8',
148 stdio: ['pipe', 'pipe', 'pipe'],
149 timeout: 10000
150 });
151}
152
153function test(name, fn) {
154 try {

Callers 1

runTestsFunction · 0.70

Calls 1

spawnSyncFunction · 0.85

Tested by

no test coverage detected