MCPcopy Create free account
hub / github.com/SethGammon/Citadel / withTempProject

Function withTempProject

scripts/test-telemetry-core.js:20–27  ·  view source on GitHub ↗
(run)

Source from the content-addressed store, hash-verified

18} = require('../core/telemetry/report');
19
20function withTempProject(run) {
21 const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'citadel-telemetry-'));
22 try {
23 return run(dir);
24 } finally {
25 fs.rmSync(dir, { recursive: true, force: true });
26 }
27}
28
29function writeJsonl(file, lines) {
30 fs.mkdirSync(path.dirname(file), { recursive: true });

Callers 1

Calls 1

runFunction · 0.70

Tested by

no test coverage detected