Skip to content

Commit

Permalink
Ensure timely exit of process after test run finishes (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
ejizba authored Nov 8, 2023
1 parent 6bcefdf commit bd876fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ export async function run(): Promise<void> {
if (failures > 0) {
throw new Error(`${failures} tests failed.`);
}
console.log('Test run succeeded');
process.exit(0);
} catch (err) {
console.error(err);
console.error('Test run failed');
Expand Down

0 comments on commit bd876fe

Please sign in to comment.