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

Function tmp

apps/desktop/src/main/app-config.test.ts:34–38  ·  view source on GitHub ↗
(prefix: string)

Source from the content-addressed store, hash-verified

32
33const tempDirs: string[] = []
34async function tmp(prefix: string): Promise<string> {
35 const dir = await mkdtemp(path.join(os.tmpdir(), prefix))
36 tempDirs.push(dir)
37 return dir
38}
39
40const ENV_KEYS = ['ZENNOTES_CONFIG_DIR', 'XDG_CONFIG_HOME', 'APPDATA'] as const
41let savedEnv: Record<string, string | undefined> = {}

Callers 1

app-config.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected