Evalkeeper
    Preparing search index...

    Function withoutLeaks

    • Runs a suite's leak check (withoutLeaks) on an input about to be frozen into a case, and checks the result still fits the suite's input. Without a leak check, the input comes back as it was. Use it wherever cases are made outside importCases, such as an "add case" action.

      Parameters

      • suite: AnySuite

        The suite the case belongs to.

      • input: unknown

        The case's input, already checked against suite.input.

      • sourceRef: string | null

        What the case was made from, or null when added by hand.

      Returns { input: unknown; removed: string[] }

      The input to freeze, and what was removed from it.

      When the leak check returns an input that doesn't fit the suite.