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

Function withTempProject

scripts/test-deliver.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-deliver-'));
19 try {
20 return run(dir);
21 } finally {
22 fs.rmSync(dir, { recursive: true, force: true });
23 }
24}
25
26assert.equal(slugify('Add Auth Flow!'), 'add-auth-flow');
27

Callers 1

test-deliver.jsFile · 0.70

Calls 1

runFunction · 0.70

Tested by

no test coverage detected