Skip to content

Commit 88db5db

Browse files
authored
feat: support passing reporter options from config (#459)
1 parent 5e18365 commit 88db5db

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/commands/report.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ exports.outputReport = async function (argv) {
2525
excludeAfterRemap: argv.excludeAfterRemap,
2626
reporter: Array.isArray(argv.reporter) ? argv.reporter : [argv.reporter],
2727
reportsDirectory: argv['reports-dir'],
28+
reporterOptions: argv.reporterOptions || {},
2829
tempDirectory: argv.tempDirectory,
2930
watermarks: argv.watermarks,
3031
resolve: argv.resolve,

test/integration.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ All files | 3.52 | 12.5 | 6.52 | 3.52
171171
source-map-from-file.js | 0 | 0 | 0 | 0 | 1-100
172172
c8/lib/commands | 0 | 0 | 0 | 0 |
173173
check-coverage.js | 0 | 0 | 0 | 0 | 1-70
174-
report.js | 0 | 0 | 0 | 0 | 1-42
174+
report.js | 0 | 0 | 0 | 0 | 1-43
175175
c8/test/fixtures | 30.97 | 37.5 | 21.42 | 30.97 |
176176
async.js | 100 | 100 | 100 | 100 |
177177
c8-ignore-next.js | 54.54 | 0 | 0 | 54.54 | 1,3-4,9,12,17-19,21-22
@@ -536,7 +536,7 @@ All files | 3.52 | 12.5 | 6.52 | 3.52
536536
source-map-from-file.js | 0 | 0 | 0 | 0 | 1-100
537537
c8/lib/commands | 0 | 0 | 0 | 0 |
538538
check-coverage.js | 0 | 0 | 0 | 0 | 1-70
539-
report.js | 0 | 0 | 0 | 0 | 1-42
539+
report.js | 0 | 0 | 0 | 0 | 1-43
540540
c8/test/fixtures | 30.97 | 37.5 | 21.42 | 30.97 |
541541
async.js | 100 | 100 | 100 | 100 |
542542
c8-ignore-next.js | 54.54 | 0 | 0 | 54.54 | 1,3-4,9,12,17-19,21-22

0 commit comments

Comments
 (0)