I get an error with streams. I am new to gulp and threads are so bare with me.
I am working on adding istanbul to my existing mocha task. When I run this task, I get the error below.
I am using gulp-istanbul
(note: config.test.src.bdd.features set to 'test/bdd/features/**/*-spec.js' )
var stream = gulp.src([config.test.src.bdd.features], { read: false }); gulp.task('mocha-bdd-features', function(cb) { process.env.PORT = 8001; return stream .pipe(istanbul()) .pipe(istanbul.hookRequire()) .pipe(mocha({ compilers: { js: babel }, reporter: config.test.mocha.reporter, ui: 'bdd' })) .on('finish', function () { stream.pipe(istanbul.writeReports()) stream.pipe(istanbul.enforceThresholds({thresholds: {global: 90}})) stream.on('end', cb); }); });
I get an error:
events.js:85 throw er; // Unhandled 'error' event ^ Error: streams not supported
and who knows that I canโt configure this task right away when I try to enable gulp -istanbul, but first Iโll try to at least skip this error.
source share