Skip to content

buildInsertFailureInput

buildInsertFailureInput(opts): object

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

Build a validated InsertFailureInput for a single failure event. Runs the thrown value through categorizeError, extractMessage, and extractStack so both plugins produce the same columns.

BuildInsertFailureInputOpts

object

optional durationMs?: number | null

optional errorMessage?: string | null

optional errorStack?: string | null

failedAt: string

failureKind: "unknown" | "assertion" | "timeout" | "uncaught"

runId: string

testFile: string

testName: string