Closed pavel-castornii closed 5 years ago
you can use 'require' instead of 'compilers' option
import mocha from 'gulp-mocha'; ... return gulp.src([testFile], { read: false }) .pipe(mocha({ reporter: 'spec', require: [ 'babel-core/register', ] }));
@samsontesfay Thank you very much. Your solution helped.
I run mocha via gulp. This is my code:
The problem is I get this annoying message:
According to information here I can use --no-deprecation flag. But I can' understand how to add this flag to gulp-moch and could find a way in gulp-mocha package. Can anyone say how to fix it?