Skip to content

Commit

Permalink
Update: Updating Instrumentor (so that it supports ES6) gotwarlost#58
Browse files Browse the repository at this point in the history
  • Loading branch information
makdonmai committed Oct 24, 2019
1 parent d09c92e commit 3efaed3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var istanbul = require('istanbul'),
hook = istanbul.hook,
Report = istanbul.Report,
utils = istanbul.utils,
Instrumenter = istanbul.Instrumenter,
createInstrumenter = require('istanbul-lib-instrument').createInstrumenter,
instrumenter = null,
TreeSummarizer = istanbul.TreeSummarizer,
baselineCoverage = {};
Expand Down Expand Up @@ -113,7 +113,7 @@ function hookLoader(matcherOrRoot, opts) {
}

if (instrumenter) { return; } //already hooked
instrumenter = new Instrumenter(opts);
instrumenter = createInstrumenter(opts);
transformer = instrumenter.instrumentSync.bind(instrumenter);
postLoadHookFn = postLoadHook(matcherFn, transformer, opts.verbose);

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"@lpinca"
],
"dependencies": {
"istanbul": "0.4.x",
"istanbul": "^0.4.5",
"istanbul-lib-instrument": "^1.10.1",
"express": "4.x",
"body-parser": "~1.12.3",
"archiver": "0.14.x"
Expand Down

0 comments on commit 3efaed3

Please sign in to comment.