diff --git a/gulpfile.ts b/gulpfile.ts
index 04bd2b1c43..93002cbf37 100644
--- a/gulpfile.ts
+++ b/gulpfile.ts
@@ -93,6 +93,7 @@ gulp.src('./src/**/*.ts')
 gulp.task('mocha', () =>
 	gulp.src([])
 		.pipe(mocha({
+			exit: true
 			//compilers: 'ts:ts-node/register'
 		} as any))
 );