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

Function makeVault

apps/desktop/src/main/databases-migrate.test.ts:10–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8const tempDirs: string[] = []
9
10async function makeVault(): Promise<string> {
11 const dir = await mkdtemp(path.join(os.tmpdir(), 'zen-dbmig-'))
12 tempDirs.push(dir)
13 await mkdir(path.join(dir, 'inbox'), { recursive: true })
14 return dir
15}
16
17afterEach(async () => {
18 await Promise.all(tempDirs.splice(0).map((d) => rm(d, { recursive: true, force: true })))

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected