Skip to content

Commit c4f7a9c

Browse files
briandipalmamattlewis92
authored andcommitted
feat(config): support istanbul-api instrumentation configuration
Closes #73
1 parent 8fee4a9 commit c4f7a9c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,13 @@ module.exports = function(config) {
8989
}
9090
},
9191

92-
verbose: true // output config used by istanbul for debugging
92+
verbose: true, // output config used by istanbul for debugging
93+
94+
// `instrumentation` is used to configure Istanbul API package.
95+
instrumentation: {
96+
// To include `node_modules` code in the report.
97+
'default-excludes': false
98+
}
9399
}
94100
});
95101
};

src/reporter.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ function CoverageIstanbulReporter(baseReporterDecorator, logger, config) {
8282
: {};
8383

8484
const reportConfig = istanbul.config.loadObject({
85+
instrumentation: Object.assign({}, coverageConfig.instrumentation),
8586
verbose: coverageConfig.verbose === true,
8687
reporting: Object.assign({}, coverageConfig, reportConfigOverride)
8788
});

0 commit comments

Comments
 (0)