Skip to content

buildDemoVaultPopulateAsync

The self-healing counterpart of buildDemoVaultPopulate: installs any injected community plugin whose binaries are missing (see bootstrapDemoVaultPlugins), then builds the populate map exactly as the synchronous builder does.

Use this from a global setup’s populate thunk — both the Vitest and Jest adapters accept a thunk returning a promise — so a fresh clone, a new machine, or CI needs no manual install step.

Import:

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

Signature:

function buildDemoVaultPopulateAsync(params: BuildDemoVaultPopulateParams): Promise<PopulateFilesParams>

Parameters:

ParameterTypeDescription
paramsBuildDemoVaultPopulateParamsThe same bag the synchronous builder takes, as BuildDemoVaultPopulateAsyncParams.

Returns: Promise<PopulateFilesParams> — The populate map, ready to hand to a global setup’s populate or TemporaryVault.populate.


Links to this page: