[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
12

Configure Feed

Select the types of activity you want to include in your feed.

fix(types): `bench.reporters` no longer gives type errors when passing file name string paths (#9695)

authored by

Bertie690 and committed by
GitHub
(Feb 19, 2026, 9:08 AM +0900) 093c8f6b 4d7938a5

+3 -3
+3 -3
packages/vitest/src/node/types/benchmark.ts
··· 25 25 includeSource?: string[] 26 26 27 27 /** 28 - * Custom reporter for output. Can contain one or more built-in report names, reporter instances, 29 - * and/or paths to custom reporters 28 + * Custom reporters to use for output. Can contain one or more built-in reporter names, reporter instances, 29 + * and/or paths to custom reporter files to import. 30 30 * 31 31 * @default ['default'] 32 32 */ 33 - reporters?: Arrayable<BenchmarkBuiltinReporters | Reporter> 33 + reporters?: Arrayable<BenchmarkBuiltinReporters | Reporter | (string & {})> 34 34 35 35 /** 36 36 * @deprecated Use `benchmark.outputJson` instead