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);
|
||||
});
|
||||
try {
|
||||
await runMocha();
|
||||
return 0;
|
||||
}
|
||||
catch (error) {
|
||||
return error.code;
|
||||
}
|
||||
await runMocha();
|
||||
return 0;
|
||||
}
|
||||
chokidar.watch(testLocation)
|
||||
.on('all', async () => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user