Evalkeeper
    Preparing search index...

    Function describeSuiteContract

    • The contract every set of suites should meet, so people confirming answers weeks later (and the pages) can read them: unique keys, a label and help for every top-level field of each suite's input and answer, a description for every check, and starter cases that fit the suite's own schemas. One test per suite, listing what's missing in plain words (suiteContractProblems).

      Parameters

      • name: string

        What the tests are called, e.g. "our suites".

      • suites: readonly AnySuite[]

        Every suite the app registers.

      • opts: ContractOptions = {}

        Test functions other than Vitest's.

      Returns void

      import { describeSuiteContract } from "@crowandraven/evalkeeper/testing";
      import { SUITES } from "../lib/suites";

      describeSuiteContract("our suites", SUITES);