write(config: Config,testFiles: string[]): Promise<void>
Renders the run's accumulated coverage: always prints the terminal summary, then writes the
lcov/html reports the user requested via config.coverageFormats. testFiles (the run's
test entry paths) are excluded so the report reflects the code under test, not the tests.
import * as Report from './report.ts'; import type { Config } from '../types.ts'; // Defined, not invoked: prints the summary and writes files under <output>/coverage/. async function example(config: Config, testFiles: string[]) { await Report.write(config, testFiles); // stdout: the "# Coverage (V8 line coverage)" table, then "# wrote coverage lcov to …" lines }
config: Config