readDemoVaultTree
Reads a demo vault directory tree recursively into a PopulateFilesParams map (vault-relative POSIX path to file bytes), skipping ReadDemoVaultTreeParams.excludedNames.
Import:
import { readDemoVaultTree } from 'obsidian-integration-testing';Signature:
function readDemoVaultTree(params: ReadDemoVaultTreeParams): PopulateFilesParamsParameters:
| Parameter | Type | Description |
|---|---|---|
params | ReadDemoVaultTreeParams | The ReadDemoVaultTreeParams. |
Returns: PopulateFilesParams — The populate map, ready to hand to TemporaryVault.populate or a global setup’s populate.
Links to this page: