function buildResult
buildResult(
config: ResolvedConfig,
outcome: RunOutcome
): RunResult

Assembles the run's result from the config's accumulated state, the run's outcome, and the APIReporter that watched it.

import type { Config } from '../types.ts';
import type { RunOutcome } from '../commands/test.ts';

// Defined, not invoked: reads the live counters off a resolved Config.
function assemble(config: Config, outcome: RunOutcome) {
  return buildResult(config, outcome);
}

Parameters

config: ResolvedConfig
outcome: RunOutcome

Return Type

Usage

import { buildResult } from "lib/api/test.ts";