mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
fix(jsdoc): fail tests on unhandled promise rejection
This commit is contained in:
parent
c6d3dea475
commit
f78ef7d5a4
@ -26,6 +26,11 @@ module.exports = () => {
|
||||
}
|
||||
});
|
||||
|
||||
// Treat an unhandled promise rejection as an error.
|
||||
process.on('unhandledRejection', e => {
|
||||
throw e;
|
||||
});
|
||||
|
||||
jasmine.loadConfig({
|
||||
helpers: [
|
||||
'node_modules/@jsdoc/test-matchers',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user