MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / makeTempDir

Function makeTempDir

apps/desktop/src/main/vault.test.ts:35–39  ·  view source on GitHub ↗
(prefix: string)

Source from the content-addressed store, hash-verified

33const tempDirs: string[] = []
34
35async function makeTempDir(prefix: string): Promise<string> {
36 const dir = await mkdtemp(path.join(os.tmpdir(), prefix))
37 tempDirs.push(dir)
38 return dir
39}
40
41afterEach(async () => {
42 await Promise.all(tempDirs.splice(0).map((dir) => rm(dir, { recursive: true, force: true })))

Callers 2

vault.test.tsFile · 0.70
makeVaultWithNestedNoteFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected