Skip to content

PluginUnloadLeakResult

What detectPluginUnloadLeak found.

Import:

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

Signature:

export interface PluginUnloadLeakResult

Properties

PropertyTypeDescription
collectionCountnumberHow many garbage collections ran before the answer.
isLeakedbooleanWhether 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: