EvalHarnessRun
EvalHarnessRun<
TInput,TOutput,TMetadata,THarness> =HarnessRun<TOutput> &object
Harness run returned by the fixture-backed run(...) API.
Type Declaration
Section titled “Type Declaration”[evalHarnessRunBrand]
Section titled “[evalHarnessRunBrand]”
readonly[evalHarnessRunBrand]:object
[evalHarnessRunBrand].harness
Section titled “[evalHarnessRunBrand].harness”
readonlyharness:THarness
[evalHarnessRunBrand].input
Section titled “[evalHarnessRunBrand].input”
readonlyinput:TInput
[evalHarnessRunBrand].metadata
Section titled “[evalHarnessRunBrand].metadata”
readonlymetadata:TMetadata
[evalHarnessRunBrand].output
Section titled “[evalHarnessRunBrand].output”
readonlyoutput:TOutput
Type Parameters
Section titled “Type Parameters”TInput
Section titled “TInput”TInput = unknown
TOutput
Section titled “TOutput”TOutput extends JsonValue | undefined = JsonValue | undefined
TMetadata
Section titled “TMetadata”TMetadata extends HarnessMetadata = HarnessMetadata
THarness
Section titled “THarness”THarness extends Harness<TInput, TOutput, TMetadata> = Harness<TInput, TOutput, TMetadata>
Example
Section titled “Example”it("approves a refund", async ({ run }) => { const result = await run("Refund invoice inv_123");
expect(result.output.status).toBe("approved");});