test: fail tests if the spec runner promise rejects (#24762)

This commit is contained in:
Samuel Attard 2020-07-28 20:36:35 -07:00 committed by GitHub
parent 9c37e12e2d
commit f859d4ce44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -124,4 +124,8 @@ app.whenReady().then(async () => {
chai.use(require('dirty-chai')); chai.use(require('dirty-chai'));
const runner = mocha.run(cb); const runner = mocha.run(cb);
}).catch((err) => {
console.error('An error occurred while running the spec-main spec runner');
console.error(err);
process.exit(1);
}); });