Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Printing stacktrace whenever a promise is rejected #268

Open
kobik opened this issue Nov 17, 2020 · 1 comment · May be fixed by #274
Open

Printing stacktrace whenever a promise is rejected #268

kobik opened this issue Nov 17, 2020 · 1 comment · May be fixed by #274

Comments

@kobik
Copy link

kobik commented Nov 17, 2020

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!

blastrock added a commit to blastrock/chai-as-promised that referenced this issue Jul 20, 2021
@blastrock blastrock linked a pull request Jul 20, 2021 that will close this issue
blastrock added a commit to blastrock/chai-as-promised that referenced this issue Jul 20, 2021
blastrock added a commit to blastrock/chai-as-promised that referenced this issue Jul 20, 2021
@nopeless
Copy link

#276

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants