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

Function makeTestHome

test/gstack-gbrain-sync.test.ts:25–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23const SCRIPT = join(import.meta.dir, "..", "bin", "gstack-gbrain-sync.ts");
24
25function makeTestHome(): string {
26 return mkdtempSync(join(tmpdir(), "gstack-gbrain-sync-"));
27}
28
29function runScript(args: string[], env: Record<string, string> = {}): { stdout: string; stderr: string; exitCode: number } {
30 const result = spawnSync("bun", [SCRIPT, ...args], {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected