(extraEnv = {})
| 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: '' }); |
no test coverage detected