mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-12-22 18:18:55 +00:00
Fix bug in mocha where next task is executed before mocha callback
This commit is contained in:
parent
31ee80f84f
commit
c4700fcb7b
@ -105,8 +105,8 @@ gulp.task('test', callback => {
|
||||
return runSequence('prune', 'mocha', callback);
|
||||
});
|
||||
|
||||
gulp.task('mocha', ['build'], () => {
|
||||
return gulp.src(PATHS.CLI_DEST_JS)
|
||||
gulp.task('mocha', ['build'], done => {
|
||||
gulp.src(PATHS.CLI_DEST_JS)
|
||||
.pipe(istanbul({includeUntested: true}))
|
||||
.on('finish', () => {
|
||||
return gulp.src(PATHS.TEST_DEST_JS, {read: false})
|
||||
@ -115,7 +115,10 @@ gulp.task('mocha', ['build'], () => {
|
||||
dir: './coverage',
|
||||
reporters: ['lcov'],
|
||||
reportOpts: {dir: './coverage'}
|
||||
}));
|
||||
}))
|
||||
.on('finish', () => {
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user