Skip to content

getReleasedPluginPopulate

Builds the vault-relative file map that installs a plugin’s released build, and optionally its settings, ready to hand to a global setup’s populate or to merge into a larger map. Enabling it is the global setup’s enableCommunityPlugins.

The result is assignable to obsidian-integration-testing’s PopulateFilesParams.

Import:

import { getReleasedPluginPopulate } from '@mnaoumov/obsidian-dev-toolkit/test-runners/released-plugin';

Signature:

function getReleasedPluginPopulate(params: GetReleasedPluginPopulateParams): Promise<Record<string, string>>

Parameters:

Parameter Type Description
params GetReleasedPluginPopulateParams Which plugin, repository and release tag to install, and the settings to seed.

Returns: Promise<Record<string, string>> — The map of vault-relative paths to file contents.


Links to this page: