mirror of https://github.com/embarklabs/embark.git
Write coverage report asynchronously
This commit is contained in:
parent
a8a9f3e9a8
commit
103262f435
|
@ -41,9 +41,9 @@ class CodeCoverage {
|
|||
}
|
||||
|
||||
updateCoverageReport(cb) {
|
||||
fs.mkdirpSync(this.dotEmbarkPath);
|
||||
fs.writeFileSync(this.coverageReportPath, JSON.stringify(this.coverageReport));
|
||||
cb();
|
||||
fs.mkdirp(this.dotEmbarkPath, () => {
|
||||
fs.writeFile(this.coverageReportPath, JSON.stringify(this.coverageReport), cb);
|
||||
});
|
||||
}
|
||||
|
||||
async runSolc(receipt) {
|
||||
|
|
Loading…
Reference in New Issue