Functions

f
displayTestResult(
testNumber: number,
details: TestDetails,
failures?: FailureInfo[],
output?: Console
): void

Formats and prints a single QUnit testEnd event as a TAP ok/not ok line with an optional YAML failure block. A pure formatter: testNumber is the TAP sequence number (the caller owns counting) and failures are pre-resolved by failedAssertions.

Usage

import * as mod from "lib/tap/display-test-result.ts";