testplane
testplane copied to clipboard
Make 'Unhandled Rejection' error more prominent
Contribution
- [ ] I'd be willing to implement this feature (contributing guide)
Describe the user story
If you forget await
somewhere you'll probably get the Unhandled Rejection
and all your tests will be stopped.
At the moment the error looks like:
Terminating on critical error: Unhandled Rejection in testplane:worker:2083:
Promise: {}
Most of the time it is located in the middle of the test log and it is hard to understand that all of your tests were stopped because of it.
Describe the solution you'd like
Make the error message more dramatic:
————————————————————————————————————
CRITICAL ERROR OCCURED. TERMINATINING ALL TESTS.
Unhandled Rejection in testplane:worker:2083:
Promise: {}
————————————————————————————————————
Describe the drawbacks of your solution
No response
Describe alternatives you've considered
No response