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

Function makeVault

apps/desktop/src/main/databases.test.ts:14–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13const tmpDirs: string[] = []
14async function makeVault(): Promise<string> {
15 const dir = await mkdtemp(path.join(os.tmpdir(), 'zennotes-db-'))
16 tmpDirs.push(dir)
17 await mkdir(path.join(dir, 'inbox'), { recursive: true })
18 return dir
19}
20
21afterEach(async () => {
22 await Promise.all(tmpDirs.splice(0).map((d) => rm(d, { recursive: true, force: true })))

Callers 1

databases.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected