Skip to content

TemporaryVaultConstructorOptions

Options for the TemporaryVault constructor.

Import:

import type { TemporaryVaultConstructorOptions } from 'obsidian-integration-testing';

Signature:

export interface TemporaryVaultConstructorOptions

Properties

PropertyTypeDescription
shouldRemoveDirectoryOnDispose?booleanWhether TemporaryVault.dispose removes the vault **directory**.

When omitted, defaults to whether this instance created that directory — true for a temp directory the constructor made (no path argument), false for a directory handed to it as an explicit path. A handle over somebody else's directory unregisters the vault but leaves the files alone, so wrapping a directory cannot destroy it. Set explicitly to override.