Skip to content

Commit

Permalink
fix: convert string coverage reporters to array (#1860)
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio committed Aug 17, 2022
1 parent b54a13e commit e21c78c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/coverage-istanbul/src/provider.ts
Expand Up @@ -184,6 +184,7 @@ function resolveIstanbulOptions(options: CoverageIstanbulOptions, root: string)
provider: 'istanbul',
reportsDirectory,
tempDirectory: resolve(reportsDirectory, 'tmp'),
reporter: Array.isArray(options.reporter) ? options.reporter : [options.reporter],
}

return resolved as ResolvedCoverageOptions & { provider: 'istanbul' }
Expand Down

0 comments on commit e21c78c

Please sign in to comment.