Skip to content

temporary-vault

Manages temporary vault lifecycle for integration tests.

ClassDescription
TemporaryVaultA temporary Obsidian vault for integration tests. Creates a temp directory and registers it in the running Obsidian instance so that the Obsidian CLI can target it via cwd.
TypeDescription
PopulateFileContentContent value for a single entry in a PopulateFiles map. - string — text file (written as UTF-8). - Uint8Array — binary file (written as raw bytes; Buffer is accepted because Buffer extends Uint8Array). - undefined — empty folder (the key must end with /).
PopulateFilesParamsA map of vault-relative paths to their content, used by TemporaryVault.populate. Paths ending with / denote folders and must have an undefined value. All other paths are written as files.