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

Function withTempProject

scripts/test-doc-sync.js:29–36  ·  view source on GitHub ↗
(run)

Source from the content-addressed store, hash-verified

27}
28
29function withTempProject(run) {
30 const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'citadel-doc-sync-'));
31 try {
32 run(dir);
33 } finally {
34 fs.rmSync(dir, { recursive: true, force: true });
35 }
36}
37
38withTempProject((projectRoot) => {
39 const now = '2026-06-05T12:00:00.000Z';

Callers 1

test-doc-sync.jsFile · 0.70

Calls 1

runFunction · 0.70

Tested by

no test coverage detected