Skip to content

Commit

Permalink
Merge pull request #91 from nimrod-becker/master
Browse files Browse the repository at this point in the history
Provide an option to skip path resolution
  • Loading branch information
SBoudrias committed May 2, 2016
2 parents 293cf78 + 5e79eb4 commit 99432aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -3,7 +3,7 @@
var through = require('through2').obj;
var path = require('path');
var checker = require('istanbul-threshold-checker');
// Make sure istanbul is `require`d after the istanbul-threshold-checker to use the istanbul version
// Make sure istanbul is `require`d after the istanbul-threshold-checker to use the istanbul version
// defined in this package.json instead of the one defined in istanbul-threshold-checker.
var istanbul = require('istanbul');
var gutil = require('gulp-util');
Expand Down Expand Up @@ -52,7 +52,7 @@ var plugin = module.exports = function (opts) {
if (covStubMatch !== null) {
var covStub = JSON.parse(covStubMatch[0]);
global[opts.coverageVariable] = global[opts.coverageVariable] || {};
global[opts.coverageVariable][path.resolve(file.path)] = covStub;
global[opts.coverageVariable][file.path] = covStub;
}
}

Expand Down

0 comments on commit 99432aa

Please sign in to comment.