Skip to content

buildUpdateRunInput

buildUpdateRunInput(opts): object

Defined in: packages/core/src/observe/build-inputs.ts:128

Build a validated UpdateRunInput for the “test run finished” write. Derives statusfail when any test failed or any between-tests error fired, pass otherwise — so both plugins arrive at the same rule.

BuildUpdateRunInputOpts

object

optional durationMs?: number

optional endedAt?: string

optional errorsBetweenTests?: number

optional failedTests?: number

optional passedTests?: number

optional status?: "pass" | "fail"

optional totalTests?: number