add thens to catch errors
This commit is contained in:
parent
fdeac8bede
commit
293fce63a9
|
@ -137,9 +137,10 @@ module.exports = {
|
||||||
}
|
}
|
||||||
console.log(`Coverage report created. You can find it here: ${fs.dappPath('coverage/index.html')}\n`);
|
console.log(`Coverage report created. You can find it here: ${fs.dappPath('coverage/index.html')}\n`);
|
||||||
const opn = require('opn');
|
const opn = require('opn');
|
||||||
opn(fs.dappPath('coverage/index.html'));
|
const _next = () => { next(); };
|
||||||
|
opn(fs.dappPath('coverage/index.html'), {wait: false})
|
||||||
setTimeout(next, 1000); // Slight delay to enable the browser to open. opn's promise calls too fast
|
.then(() => new Promise(resolve => setTimeout(resolve, 1000)))
|
||||||
|
.then(_next, _next);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
], (err) => {
|
], (err) => {
|
||||||
|
|
Loading…
Reference in New Issue