How to catch unhandled promise rejections in your JavaScript test suite | Dark Hacker News