PluginUnloadLeakResult
What detectPluginUnloadLeak found.
Import:
import type { PluginUnloadLeakResult } from 'obsidian-integration-testing';Signature:
export interface PluginUnloadLeakResultProperties
| Property | Type | Description |
|---|---|---|
| collectionCount | number | How many garbage collections ran before the answer. |
| isLeaked | boolean | Whether the plugin's instance survived the unload and every garbage collection. true means something outside the plugin still references it: a listener registered outside registerEvent / registerDomEvent, an interval outside registerInterval, a patch that was never removed, or the plugin storing itself on a global. |
Links to this page: