MCPcopy
hub / github.com/garrytan/gstack / run

Function run

test/skill-e2e-office-hours-brain-writeback.test.ts:77–78  ·  view source on GitHub ↗
(cmd: string, args: string[])

Source from the content-addressed store, hash-verified

75 beforeAll(() => {
76 workDir = mkdtempSync(join(tmpdir(), 'skill-e2e-brain-writeback-'));
77 const run = (cmd: string, args: string[]) =>
78 spawnSync(cmd, args, { cwd: workDir, stdio: 'pipe', timeout: 5000 });
79 run('git', ['init', '-b', 'main']);
80 run('git', ['config', 'user.email', 'test@test.com']);
81 run('git', ['config', 'user.name', 'Test']);

Calls 1

spawnSyncFunction · 0.85

Tested by

no test coverage detected