我正在尝试使用gulp-mocha模块,但无法找出传递编译器标志的好方法.有没有办法在我的gulp任务中包含这个?也许在某个单独的管道中?
从命令行运行mocha的示例(工作正常)
mocha --compilers .:my_compiler.js test/**/*.js
使用gulp-mocha的例子(但我在哪里可以指定编译器)?
gulp.task('test', function () {
gulp.src(["test/**/*.js"], {
read: false
})
.pipe(mocha({
reporter: 'spec'
}))
.pipe(exit());
});
Run Code Online (Sandbox Code Playgroud)
我没有在gulp-mocha插件下看到编译器选项,所以我想我需要以某种方式通过管道附加文本来添加编译器?