MCPcopy Create free account
hub / github.com/EvoMap/evolver / runDaemonOnce

Function runDaemonOnce

test/loopMode.test.js:306–315  ·  view source on GitHub ↗
(extraEnv = {})

Source from the content-addressed store, hash-verified

304 }
305
306 function runDaemonOnce(extraEnv = {}) {
307 ensureGitRepo(tmpDir);
308 const result = spawnSync(process.execPath, [path.join(repoRoot, 'index.js'), '--loop'], {
309 cwd: tmpDir,
310 encoding: 'utf8',
311 timeout: 3000,
312 env: daemonChildEnv(extraEnv),
313 });
314 return (result.stdout || '') + (result.stderr || '');
315 }
316
317 it('--loop with EVOLVE_BRIDGE unset defaults to bridge=true', () => {
318 const combined = runDaemonOnce({ EVOLVE_BRIDGE: '' });

Callers 1

loopMode.test.jsFile · 0.85

Calls 2

daemonChildEnvFunction · 0.85
ensureGitRepoFunction · 0.70

Tested by

no test coverage detected