Skip to content

demo-vault-tree

Reads a plugin’s in-repo demo-vault/ tree into a populate map so a Vitest/Jest global setup can seed it into the temp vault BEFORE Obsidian opens it. Seeding pre-launch lets Obsidian’s startup scan index every note in one pass, avoiding the file-watcher race that silently drops events under a bulk post-launch TemporaryVault.populate.

InterfaceDescription
ReadDemoVaultTreeParamsParameters for readDemoVaultTree.
FunctionDescription
readDemoVaultTreeReads a demo vault directory tree recursively into a PopulateFilesParams map (vault-relative POSIX path to file bytes), skipping ReadDemoVaultTreeParams.excludedNames.