Skip to content

Commit

Permalink
Fix issue where coverage was broken.
Browse files Browse the repository at this point in the history
Resolves #238
  • Loading branch information
jamesplease committed Oct 10, 2015
1 parent 85ef40f commit 2ea8553
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/templates/gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,10 @@ function _registerBabel() {
require('babel-core/register');
}

function test() {
_registerBabel();
function test({ registerBabel: true }) {
if (registerBabel) {
_registerBabel();
}
return _mocha();
}

Expand All @@ -109,7 +111,7 @@ function coverage(done) {
.pipe($.istanbul({ instrumenter: isparta.Instrumenter }))
.pipe($.istanbul.hookRequire())
.on('finish', () => {
return test()
return test({registerBabel: false})
.pipe($.istanbul.writeReports())
.on('end', done);
});
Expand Down

0 comments on commit 2ea8553

Please sign in to comment.