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

Function withTempProject

scripts/test-usefulness-trial.js:17–24  ·  view source on GitHub ↗
(run)

Source from the content-addressed store, hash-verified

15}
16
17function withTempProject(run) {
18 const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'citadel-usefulness-trial-'));
19 try {
20 return run(dir);
21 } finally {
22 fs.rmSync(dir, { recursive: true, force: true });
23 }
24}
25
26function scaffoldRepo(projectRoot, testExit = 0) {
27 write(path.join(projectRoot, 'README.md'), '# Fixture\n');

Callers 1

Calls 1

runFunction · 0.70

Tested by

no test coverage detected