Skip to content

Commit

Permalink
feat: support passing reporter options from config (#459)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkowalleck authored Jan 11, 2024
1 parent 5e18365 commit 88db5db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/commands/report.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ exports.outputReport = async function (argv) {
excludeAfterRemap: argv.excludeAfterRemap,
reporter: Array.isArray(argv.reporter) ? argv.reporter : [argv.reporter],
reportsDirectory: argv['reports-dir'],
reporterOptions: argv.reporterOptions || {},
tempDirectory: argv.tempDirectory,
watermarks: argv.watermarks,
resolve: argv.resolve,
Expand Down
4 changes: 2 additions & 2 deletions test/integration.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ All files | 3.52 | 12.5 | 6.52 | 3.52
source-map-from-file.js | 0 | 0 | 0 | 0 | 1-100
c8/lib/commands | 0 | 0 | 0 | 0 |
check-coverage.js | 0 | 0 | 0 | 0 | 1-70
report.js | 0 | 0 | 0 | 0 | 1-42
report.js | 0 | 0 | 0 | 0 | 1-43
c8/test/fixtures | 30.97 | 37.5 | 21.42 | 30.97 |
async.js | 100 | 100 | 100 | 100 |
c8-ignore-next.js | 54.54 | 0 | 0 | 54.54 | 1,3-4,9,12,17-19,21-22
Expand Down Expand Up @@ -536,7 +536,7 @@ All files | 3.52 | 12.5 | 6.52 | 3.52
source-map-from-file.js | 0 | 0 | 0 | 0 | 1-100
c8/lib/commands | 0 | 0 | 0 | 0 |
check-coverage.js | 0 | 0 | 0 | 0 | 1-70
report.js | 0 | 0 | 0 | 0 | 1-42
report.js | 0 | 0 | 0 | 0 | 1-43
c8/test/fixtures | 30.97 | 37.5 | 21.42 | 30.97 |
async.js | 100 | 100 | 100 | 100 |
c8-ignore-next.js | 54.54 | 0 | 0 | 54.54 | 1,3-4,9,12,17-19,21-22
Expand Down

0 comments on commit 88db5db

Please sign in to comment.