MCPcopy Create free account
hub / github.com/garrytan/gstack / writeTempJSONL

Function writeTempJSONL

test/analytics.test.ts:12–17  ·  view source on GitHub ↗
(name: string, lines: string[])

Source from the content-addressed store, hash-verified

10const SCRIPT = path.resolve(import.meta.dir, '../scripts/analytics.ts');
11
12function writeTempJSONL(name: string, lines: string[]): string {
13 fs.mkdirSync(TMP_DIR, { recursive: true });
14 const p = path.join(TMP_DIR, name);
15 fs.writeFileSync(p, lines.join('\n') + '\n');
16 return p;
17}
18
19/**
20 * Run the analytics script with a custom JSONL file by overriding the path.

Callers 1

analytics.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected