support reporter options #5042
Labels
enhancement
New feature or request
p2-nice-to-have
Not breaking anything but nice to have (priority)
pr welcome
Clear and concise description of the problem
Spinned off from #5007 (comment)
To allow customizing reporter in a general manner (and also as Jest compatibility), Vitest should support reporter options.
Suggested solution
I think it's possible to support the same thing as Jest:
reporters: [ ["name", { ...option }], ... ]
Currently Vitest doesn't assume anything about constructor arguments, so probably introducing this feature is not a breaking change:
vitest/packages/vitest/src/node/reporters/utils.ts
Lines 30 to 37 in cfd0611
Alternative
Currently minor customization can be provided by environment variable
Or by using custom field in
test
config:Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: