Files
shields/core/unhandled-rejection.spec.js
2021-07-09 12:53:55 +01:00

6 lines
151 B
JavaScript

// Cause unhandled promise rejections to fail unit tests, and print with stack
// traces.
process.on('unhandledRejection', error => {
throw error
})