Skip to content

Commit

Permalink
Put the require of the checker before requiring istanbul.
Browse files Browse the repository at this point in the history
This way the last istanbul has preference over the istanbul set in the
threshold checker, as this is an older version but somehow is partially
used when generating the reports.
  • Loading branch information
jvanoostveen committed Nov 23, 2015
1 parent b961835 commit 68b3de0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

var through = require('through2').obj;
var path = require('path');
var checker = require('istanbul-threshold-checker');
var istanbul = require('istanbul');
var gutil = require('gulp-util');
var _ = require('lodash');
var Report = istanbul.Report;
var Collector = istanbul.Collector;
var PluginError = gutil.PluginError;
var checker = require('istanbul-threshold-checker');

var PLUGIN_NAME = 'gulp-istanbul';
var COVERAGE_VARIABLE = '$$cov_' + new Date().getTime() + '$$';
Expand Down

0 comments on commit 68b3de0

Please sign in to comment.