// ets_tracing: off import type * as T from "../../Effect/index.js" import type { Has } from "../../Has/index.js" import type { ExecutedSpec } from "../ExecutedSpec/index.js" import type { TestAnnotationRenderer } from "../TestAnnotationRenderer/index.js" import type { Duration } from "../TestClock/index.js" import type { TestLogger } from "../TestLogger/index.js" import { logLine } from "../TestLogger/index.js" /** * A `TestReporter[E]` is capable of reporting test results * with error type `E`. */ export type TestReporter = ( duration: Duration, executedSpec: ExecutedSpec ) => T.RIO, void> export function DefaultTestReporter(_: TestAnnotationRenderer): TestReporter { return (d, s) => logLine(`duration: ${d}\n${JSON.stringify(s)}`) }