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

Function makeVault

apps/desktop/src/main/assets-migrate.test.ts:9–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7const tempDirs: string[] = []
8
9async function makeVault(): Promise<string> {
10 const dir = await mkdtemp(path.join(os.tmpdir(), 'zen-amig-'))
11 tempDirs.push(dir)
12 return dir
13}
14
15afterEach(async () => {
16 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