fix: mocha error propagation
This commit is contained in:
parent
9a5fb07d81
commit
1f11aac027
|
@ -83,13 +83,8 @@ export default (program, flecks) => {
|
||||||
});
|
});
|
||||||
child.on('error', reject);
|
child.on('error', reject);
|
||||||
});
|
});
|
||||||
try {
|
await runMocha();
|
||||||
await runMocha();
|
return 0;
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
catch (error) {
|
|
||||||
return error.code;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
chokidar.watch(testLocation)
|
chokidar.watch(testLocation)
|
||||||
.on('all', async () => {
|
.on('all', async () => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user