function displayFinalResult
displayFinalResult(
unnamed 0: Counter,
timeTaken: number,
output?: Console
): void

Prints the TAP plan line and test-run summary (total, pass, skip, fail, duration).

import * as TAP from './index.ts';

import type { Counter } from '../types.ts';

// Defined, not invoked: writes the plan and summary comments to the run's output.
function example(counter: Counter) {
  TAP.displayFinalResult(counter, 1240);
  // "1..8" then "# tests 8", "# pass 7", … "# duration 1240"
}

Parameters

unnamed 0: Counter
timeTaken: number
optional
output: Console = processConsole

Return Type

void

Usage

import { displayFinalResult } from "lib/tap/display-final-result.ts";