testEnd(config: Config,details: TestDetails): void
Applies one testEnd to the counters, then fans it out to every active reporter.
The counter update happens here — exactly once, before any reporter runs — so counts stay
correct regardless of how many reporters are attached.
import * as Reporter from './index.ts'; import type { Config } from '../types.ts'; import type { TestDetails } from './types.ts'; // Defined, not invoked: mutates the shared counter and writes reporter output. function record(config: Config, details: TestDetails) { Reporter.testEnd(config, details); // counter first, then every reporter sees the same totals }
config: Config
details: TestDetails