gulp-jasmine icon indicating copy to clipboard operation
gulp-jasmine copied to clipboard

MaxListenersExceededWarning: Possible EventEmitter memory leak detected.

Open xfg opened this issue 7 years ago • 1 comments

I am using gulp-jasmine together with gulp.watch in node.js environment and after 10 file changes I get warning

(node:26044) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 exit listeners added. Use emitter.setMaxListeners() to increase limit

my gulpfile

const gulp = require('gulp');
const jasmine = require('gulp-jasmine');

const paths = {
  specs: {
    src: ['src/**/*.spec.js']
  }
};

gulp.task('test', () => {
  return gulp.src(paths.specs.src)
    .pipe(jasmine({includeStackTrace: false, errorOnFail: false}));
});

gulp.task('serve', () => {
  gulp.watch(['**/*.js', '!node_modules/**'], gulp.parallel('test'));
});

xfg avatar Feb 11 '18 10:02 xfg

I get the same thing.

dvsoukup avatar Apr 03 '18 21:04 dvsoukup