Skip to content

ReloadPluginResult

What reloadPlugin found when it enabled the plugin again.

Import:

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

Signature:

export interface ReloadPluginResult

Properties

PropertyTypeDescription
errorMessagestring | undefinedThe error the plugin's load threw, or what it wrote to the console while failing to load. undefined when it loaded cleanly.
isLoadedbooleanWhether the plugin's instance exists after the enable. Obsidian stores the instance before it calls load(), so this stays true when onload throws: errorMessage is the signal for that. false means the plugin never got as far as an instance (its main.js threw, or exported nothing).

Links to this page: