Skip to content

Commit 25b3769

Browse files
committed
Fixed unit tests not exiting...
1 parent f002798 commit 25b3769

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

gulpfile.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,9 @@ gulp.task('test-node', gulp.series('exceptionless.test.umd', function testNode()
173173
return gulp.src('dist/temp/exceptionless-nodespec.js', { read: false })
174174
.pipe($.mocha({
175175
require: ['source-map-support/register'],
176-
timeout: 5000
177-
}))
178-
.once('end', function () {
179-
process.exit();
180-
});
176+
timeout: 5000,
177+
exit: true
178+
}));
181179
}));
182180

183181
gulp.task('test-browser', gulp.series('exceptionless.test.umd', function testBrowser(){
@@ -186,7 +184,6 @@ gulp.task('test-browser', gulp.series('exceptionless.test.umd', function testBro
186184
.pipe($.mochaPhantomjs());
187185
}));
188186

189-
// test-node calls process.exit(), so run browser tests before node tests
190187
gulp.task('test', gulp.series('test-browser', 'test-node'));
191188

192189
gulp.task('format', function format() {

0 commit comments

Comments
 (0)