Skip to content

Commit

Permalink
feat(config): support istanbul-api instrumentation configuration
Browse files Browse the repository at this point in the history
Closes #73
  • Loading branch information
briandipalma authored and mattlewis92 committed Jul 24, 2019
1 parent 8fee4a9 commit c4f7a9c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Expand Up @@ -89,7 +89,13 @@ module.exports = function(config) {
}
},

verbose: true // output config used by istanbul for debugging
verbose: true, // output config used by istanbul for debugging

// `instrumentation` is used to configure Istanbul API package.
instrumentation: {
// To include `node_modules` code in the report.
'default-excludes': false
}
}
});
};
Expand Down
1 change: 1 addition & 0 deletions src/reporter.js
Expand Up @@ -82,6 +82,7 @@ function CoverageIstanbulReporter(baseReporterDecorator, logger, config) {
: {};

const reportConfig = istanbul.config.loadObject({
instrumentation: Object.assign({}, coverageConfig.instrumentation),
verbose: coverageConfig.verbose === true,
reporting: Object.assign({}, coverageConfig, reportConfigOverride)
});
Expand Down

0 comments on commit c4f7a9c

Please sign in to comment.