Skip to content

Printing stacktrace whenever a promise is rejected #268

Open
@kobik

Description

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'

Would appreciate any advice on that.

Thanks!

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions