function runEnd
runEnd(
config: Config,
): Promise<void>

Emits run end to every active reporter, awaiting any that flush asynchronously.

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

import type { Config } from '../types.ts';
import type { RunEndInfo } from './types.ts';

// Defined, not invoked: JUnit flushes its XML file here.
async function finish(config: Config, info: RunEndInfo) {
  await Reporter.runEnd(config, info);
}

Parameters

Return Type

Promise<void>

Usage

import { runEnd } from "lib/reporters/index.ts";