central-ledger icon indicating copy to clipboard operation
central-ledger copied to clipboard

unhandled rejection is bubbling out from unit test

Open eoln opened this issue 4 years ago • 0 comments

I picked a random test case to make this POC: https://github.com/mojaloop/central-ledger/pull/753

It shows that unhandled promise rejection is bubbled out from the unit test I also fixed the test so now it fails. If you comment out the newly added L197 and run the test in console output you will see the message from process.on handler which will be called if the unit test code is not handling the error properly.

There are other 47 tests from which unhandled rejections are bubbling out

eoln avatar Jul 06 '20 13:07 eoln