fix(jsdoc): fail tests on unhandled promise rejection

This commit is contained in:
Jeff Williams 2019-12-01 14:10:34 -08:00
parent c6d3dea475
commit f78ef7d5a4

View File

@ -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',