-
Notifications
You must be signed in to change notification settings - Fork 45
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
Failed test's error points to Chai #81
Comments
Hmm... We'll have to dig into this. I've got some theories and I'm curious now which one of them it is – Webpack, source maps, different assertion function used. I'll let you know if we find something :). Thanks! :) |
I've had similar frustrations with stack traces using the same tech stack (except browserify instead of webpack). I don't remember the particulars of it now, but I traced it back to karma (or maybe karma-mocha?) itself messing with the stack traces. |
I debugged this. It turns out that we had a broken test which caused an async error to be thrown so it was caught by mocha's native Thanks for the help! :) |
See e.g. https://travis-ci.org/ckeditor/ckeditor5-engine/builds/173847164#L7972:
This is pretty useless if a test have more assertions. In the screenshot I can see that with some other assertion lib it works fine, so perhaps it's a problem with Chai. But what could help (and in fact, be pretty useful in general) was if a longer stack trace was logged in case of a failed assert.
The text was updated successfully, but these errors were encountered: