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

Function writeConfig

apps/desktop/src/cli/commands/vault.test.ts:19–21  ·  view source on GitHub ↗
(config: Record<string, unknown>)

Source from the content-addressed store, hash-verified

17let stdoutLines: string[]
18
19async function writeConfig(config: Record<string, unknown>): Promise<void> {
20 await fsp.writeFile(path.join(configDir, 'zennotes.config.json'), JSON.stringify(config))
21}
22
23beforeAll(async () => {
24 tmpDir = await fsp.mkdtemp(path.join(os.tmpdir(), 'zen-vaults-'))

Callers 1

vault.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected