function findAPIReporterFrom
findAPIReporterFrom(config: Config): APIReporter

The APIReporter watching this run — the reporter every result is built from.

A run assembled by anything other than the JS API has none, and an empty one answers that honestly: no collector, nothing collected.

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

// Defined, not invoked: reads the live reporter list off a resolved Config.
function tests(config: Config) {
  return findAPIReporterFrom(config).tests;
}

Parameters

config: Config

Return Type

Usage

import { findAPIReporterFrom } from "lib/api/reporter.ts";