Show where `UnhandledPromiseRejection`s are at
Cleaning up a test suite and getting a lot of cryptic UnhandledPromiseRejectionWarning:
s? Well then this little snippet can save you some time:
process.on('unhandledRejection', (reason, p) => {
console.log('Unhandled rejection at: Promise', p, 'reason:', reason);
});
Tweet