Skip to content

Commit

Permalink
Fix: allow user to override reporter via cli option
Browse files Browse the repository at this point in the history
  • Loading branch information
11joselu committed Feb 9, 2022
1 parent 5f00788 commit 7842e52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vitest/src/node/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class Vitest {
this.state = new StateManager()
this.snapshot = new SnapshotManager(resolved)
// @ts-expect-error cli type
this.reporters = toArray(resolved.reporters || resolved.reporter)
this.reporters = toArray(resolved.reporter || resolved.reporters)
.map((i) => {
if (typeof i === 'string') {
const Reporter = ReportersMap[i]
Expand Down

0 comments on commit 7842e52

Please sign in to comment.