fix: mocha error propagation

This commit is contained in:
cha0s 2022-06-28 05:20:29 -05:00
parent 9a5fb07d81
commit 1f11aac027

View File

@ -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 () => {