Skip to content

generateLargeVault

Generates a large, seeded vault fixture as a populate map.

Note n is <rootFolder>/folder-<f>/note-<n>.md, numbered from 0 and zero-padded so the names sort. Every note name is unique across folders, so a link written as the bare name resolves the way a user’s link would. Each note holds YAML frontmatter (aliases, created, tags), a heading, body paragraphs, and a ## Links section with its links and one inline tag.

Import:

import { generateLargeVault } from 'obsidian-integration-testing';

Signature:

function generateLargeVault(params: GenerateLargeVaultParams): PopulateFilesParams

Parameters:

Parameter Type Description
params GenerateLargeVaultParams The size and shape of the vault.

Returns: PopulateFilesParams — A map of vault-relative paths to note text.


Links to this page: