@mermaid-lint/core
    Preparing search index...

    Function selectFailures

    • The diagnostics that should fail a test run. Syntax errors and error-severity findings always count; warning-severity findings count only under strict. This matches the strict semantics of the remark and textlint adapters.

      Parameters

      • diagnostics: Diagnostic[]

        Diagnostics for a block (e.g. from lintMermaidFiles).

      • strict: boolean = false

        When true, warning-severity findings also fail.

      Returns Diagnostic[]

      The subset of diagnostics that constitute failures.