ReloadPluginResult
What reloadPlugin found when it enabled the plugin again.
Import:
import type { ReloadPluginResult } from 'obsidian-integration-testing';Signature:
export interface ReloadPluginResultProperties
| Property | Type | Description |
|---|---|---|
| errorMessage | string | undefined | The error the plugin's load threw, or what it wrote to the console while failing to load. undefined when it loaded cleanly. |
| isLoaded | boolean | Whether 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: