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

Function makeVaultWithNestedNote

apps/desktop/src/main/vault.test.ts:710–716  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

708
709describe('archive / trash round-trips', () => {
710 async function makeVaultWithNestedNote(): Promise<{ root: string }> {
711 const root = await makeTempDir('zennotes-folder-moves-')
712 await ensureVaultLayout(root)
713 await mkdir(path.join(root, 'inbox', 'demo'), { recursive: true })
714 await writeFile(path.join(root, 'inbox', 'demo', 'Tables.md'), '# Tables\n', 'utf8')
715 return { root }
716 }
717
718 it('archives a nested note into the matching archive subfolder', async () => {
719 const { root } = await makeVaultWithNestedNote()

Callers 1

vault.test.tsFile · 0.85

Calls 2

ensureVaultLayoutFunction · 0.90
makeTempDirFunction · 0.70

Tested by

no test coverage detected