Closed k0pernikus closed 6 years ago
I was running an outdated version of gulp-mocha. Once I upgraded to 4.0
yarn add gulp-mocha@4
It worked as expected using this syntax:
gulp.task('test', ['pre-test'], function () {
return gulp.src(['tests/unit/**/*.js'], {read: false})
.pipe(mocha({forbidOnly: true}));
});
In the readme.md it says:
Yet I am unable to provide the mocha flag
--forbid-only
:In my gulp-file with gulp-mocha I tried to no avail:
and just for fun:
Could you please tell me how to provide the forbid-only flag to mocha within the gulpfile?