test: fail tests if the spec runner promise rejects (#24762)
This commit is contained in:
parent
9c37e12e2d
commit
f859d4ce44
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue