function create
create(config: Config): Reporter[]

Reporter wiring. config.reporter selects exactly one stdout reporter; artifact reporters (JUnit) are additive and stack on top. Built once per run in Config.setup and shared by every concurrent group — the group configs are spread off the parent config, so they all reference this same array (the same way the run counter is shared).

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

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

const reporters = (config: Config) => Reporter.create(config); // 1 stdout reporter, +JUnit if --junit

Parameters

config: Config

Return Type

Usage

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