I'd like to make it easier to troubleshoot whenever is test is failing because a promise was either rejected instead fulfilled or rejectedWith a different error.
Currently I get errors like that from chai which makes me start a debugger instead of immediately letting me know where the error thrown from
AssertionError: expected promise to be fulfilled but it was rejected with 'RequestError: Cannot read property \'request\' of undefined'
I'd like to make it easier to troubleshoot whenever is test is failing because a promise was either rejected instead fulfilled or rejectedWith a different error.
Currently I get errors like that from chai which makes me start a debugger instead of immediately letting me know where the error thrown from
Would appreciate any advice on that.
Thanks!