Fix error messages not showing when running tests via command line.

This commit is contained in:
Grégoire Geis 2021-05-04 23:34:58 +02:00
parent 4cb9519f14
commit de6e5a24a2

View File

@ -88,6 +88,6 @@ export async function run(testsRoot: string) {
const failures = await new Promise<number>((resolve) => mocha.run(resolve));
if (failures > 0) {
process.exit(1);
process.exitCode = 1;
}
}