Skip to content

Commit e503ffe

Browse files
miherlosevAlexanderMoskovkin
authored andcommitted
fix mocha timeout in debug mode (#2276)
1 parent 3855d4a commit e503ffe

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Gulpfile.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,7 @@ gulp.task('test-server', ['build'], function () {
274274
return gulp
275275
.src('test/server/*-test.js', { read: false })
276276
.pipe(mocha({
277-
ui: 'bdd',
278-
reporter: 'spec',
279-
timeout: typeof v8debug === 'undefined' ? 2000 : Infinity // NOTE: disable timeouts in debug
277+
timeout: typeof v8debug !== 'undefined' || !!process.debugPort ? Infinity : 2000 // NOTE: disable timeouts in debug
280278
}));
281279
});
282280

0 commit comments

Comments
 (0)