Skip to content

Commit

Permalink
move html output config to output section
Browse files Browse the repository at this point in the history
  • Loading branch information
cameron-jobber committed Mar 29, 2023
1 parent 99582de commit 6099e3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ const defaultConfig = {
tolerance: 0,
input: {
coverageSummaryPath: "coverage/coverage-summary.json",
coverageHtmlPath: "coverage/html-report",
coverageIgnorePath: "coverageIgnore.json",
alwaysMerge: true,
mergePrefix: "coverage-final",
},
output: {
generatedCoverageExceptionsPath: "generatedCoverageExceptions.json",
generatedHtmlPath: "coverage/html-report",
},
messages: {
belowThreshold:
Expand Down
2 changes: 1 addition & 1 deletion src/mergeCoverage.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ exports.mergeCoverageAndGenerateReports =
};

const reportsTypeMap = {
html: config => config.input.coverageHtmlPath,
html: config => config.output.generatedHtmlPath,
["json-summary"]: config => path.dirname(config.input.coverageSummaryPath),
};

0 comments on commit 6099e3e

Please sign in to comment.