Functions

f
extractStackAt(stack: string | null | undefined): string | null

Extracts the source location from a stack trace string. Supports Chrome/Node style "at func (url:line:col)" and Firefox/WebKit style "@url:line:col". Returns a clean location string without surrounding parens, or null if nothing can be extracted.

f
failedAssertions(
details: TestDetails,
decoder?: SourceMapDecoder | null,
projectRoot?: string
): FailureInfo[]

Extracts every genuinely-failing assertion (todo assertions are expected to fail and are excluded) from a testEnd payload, resolving stacks back to original sources.

f
parseAt(at: string | null): { file: string; line: number; col: number; } | null

Splits an at string (path:line:col) into parts; returns null when it isn't a location.

Interfaces

I
FailureInfo

One failing assertion, normalized for rendering. Every reporter needs the same three things — what failed, where in the original source, and the values involved — so the source-map resolution and value normalization happen once here rather than per reporter.