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

Function withTempProject

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

Source from the content-addressed store, hash-verified

18} = require('../core/telemetry/integrity');
19
20function withTempProject(run) {
21 const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'citadel-integrity-'));
22 try {
23 run(dir);
24 } finally {
25 fs.rmSync(dir, { recursive: true, force: true });
26 }
27}
28
29function readJsonl(filePath) {
30 return fs.readFileSync(filePath, 'utf8').trim().split(/\r?\n/).map((line) => JSON.parse(line));

Callers 1

Calls 1

runFunction · 0.70

Tested by

no test coverage detected