Documentation
    Preparing search index...

    Interface AuditResourceLeaksOptions

    Options for auditResourceLeaks.

    interface AuditResourceLeaksOptions {
        label?: string;
        warn?: boolean;
    }
    Index
    label?: string

    What the audited span was, quoted in the message and used as the deduplication key — "level teardown", "editor document close". Defaults to "this span".

    Deduplication is per label because a leak found in a loop is one mistake reported once, not once per iteration; give distinct spans distinct labels.

    warn?: boolean

    Set false to compute the report without printing it — the audit becomes a pure function, which is what a test that asserts on the message wants. Defaults to true.