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 status — fail when any test failed or any
between-tests error fired, pass otherwise — so both plugins arrive at
the same rule.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”object
durationMs?
Section titled “durationMs?”
optionaldurationMs?:number
endedAt?
Section titled “endedAt?”
optionalendedAt?:string
errorsBetweenTests?
Section titled “errorsBetweenTests?”
optionalerrorsBetweenTests?:number
failedTests?
Section titled “failedTests?”
optionalfailedTests?:number
passedTests?
Section titled “passedTests?”
optionalpassedTests?:number
status?
Section titled “status?”
optionalstatus?:"pass"|"fail"
totalTests?
Section titled “totalTests?”
optionaltotalTests?:number