Evalkeeper
    Preparing search index...

    Function labelFromJson

    • A suite's labelFromForm for fixture suites: like inputFromJson, for the expected answer ("Answer isn't valid JSON: …").

      Type Parameters

      • T

      Parameters

      • schema: ZodType<T>

        The suite's answer schema (labelValue).

      • field: string = "label"

        The form field holding the JSON; default "label".

      Returns (form: FormData) => T

      A form reader to use as the suite's labelFromForm.