Skip to content

Commit

Permalink
Allow passing in a config object to be handed to the Instrumenter
Browse files Browse the repository at this point in the history
  • Loading branch information
plumlee-oa committed Jan 11, 2015
1 parent 0b9cab4 commit ed305d7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@ module.exports = function(options, extraOptions) {

if (ignore.some(minimatch.bind(null, file)))
return through();


var instrumenterConfig = {};
if (options.instrumenterConfig &&
typeof options.instrumenterConfig === 'object')
instrumenterConfig = options.instrumenterConfig;
var instrumenter = new istanbul.Instrumenter(instrumenterConfig);

var data = '';
return through(function(buf) {
data += buf;
Expand Down

0 comments on commit ed305d7

Please sign in to comment.