Skip to content

registerDemoVaultButtonSuite

Registers a vitest suite that clicks every code-button in the repo’s demo vault.

One it per note, and one evalInObsidian per button: a single closure runs as one CDP Runtime.evaluate, which the harness caps at 30 s, so a note with a dozen buttons would otherwise time out as a whole rather than reporting which button failed.

Import:

import { registerDemoVaultButtonSuite } from 'obsidian-dev-utils/script-utils/demo-vault-buttons';

Signature:

function registerDemoVaultButtonSuite(options: RegisterDemoVaultButtonSuiteOptions): void

Parameters:

ParameterTypeDescription
optionsRegisterDemoVaultButtonSuiteOptionsThe RegisterDemoVaultButtonSuiteOptions.

Returns: void


Links to this page: