-
-
Notifications
You must be signed in to change notification settings - Fork 155
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
Make throw/assertion stack traces useful #280
Conversation
This is a great step in the right direction. 👍 |
332bc02
to
381012e
Compare
test failures look unrelated to this... But i'll investigate in the AM |
Not sure what needs to be confirmed RE: QUnit. assert.pushResult is definitely public... |
Also, LGTM. |
4120664
to
7028f4b
Compare
7028f4b
to
04beda0
Compare
@rwjblue this PR also fixes CI/tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much nicer, thanks for working on this!
80eb2de
to
48b663a
Compare
@rwjblue / @trentmwillis either of you guys got time to release. I think this can be a minor version. |
@@ -1,6 +1,30 @@ | |||
import Ember from 'ember'; | |||
import QUnit from 'qunit'; | |||
|
|||
function unhandledRejectionAssertion(current, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
part 1/2 of the important bit of code:
@@ -19,6 +43,6 @@ export default Ember.Test.Adapter.extend({ | |||
}, | |||
|
|||
exception(error) { | |||
QUnit.config.current.assert.ok(false, Ember.inspect(error)); | |||
unhandledRejectionAssertion(QUnit.config.current, error); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
part 2/2 of the important bit of code:
getting trolled by something strange, where some bower deps have an invalid ember.debug.js..... @rwjblue any ideas? I opened a dedicated tracking issue -> emberjs/ember.js#15533 |
48b663a
to
2707061
Compare
TODO:
before:
after: