Skip to content

Commit 68b3de0

Browse files
committed
Put the require of the checker before requiring istanbul.
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.
1 parent b961835 commit 68b3de0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
var through = require('through2').obj;
44
var path = require('path');
5+
var checker = require('istanbul-threshold-checker');
56
var istanbul = require('istanbul');
67
var gutil = require('gulp-util');
78
var _ = require('lodash');
89
var Report = istanbul.Report;
910
var Collector = istanbul.Collector;
1011
var PluginError = gutil.PluginError;
11-
var checker = require('istanbul-threshold-checker');
1212

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

0 commit comments

Comments
 (0)