interface TestDetails

The QUnit testEnd payload as it arrives over the WebSocket. Passing tests carry the trimmed { status, fullName, runtime }; failing tests additionally carry assertions.

const details: TestDetails = { status: 'passed', fullName: ['Math', 'adds'], runtime: 2 };
details.fullName.join(' | '); // 'Math | adds' — the display name reporters print

Properties

status: string

QUnit's outcome: passed | failed | skipped | todo.

fullName: string[]

Module path followed by the test name, e.g. ['Math', 'adds'].

runtime: number

Test duration in milliseconds.

Present on failing tests only (QUnit trims the payload otherwise).

Usage

import { type TestDetails } from "lib/reporters/types.ts";