Closed lolmaus closed 6 years ago
Consider this step:
.then("should not crash", async function () { throw new Error("Oops, it crashed"); })
(Note: this function returns a rejected promise.)
For me, this code results in QUnit hanging and timing out. The error is visible in console as "uncaught error in promise", but not in QUnit output.
I tried to follow Yadda codebase from here and got lost in callbacks.
To resolve the issue, a rejected promise must be handled as a failed assertion.
PS I :heart: promises and I do want to write my steps like shown above.
May be an issue downstream: https://github.com/albertjan/ember-cli-yadda/issues/62
It is an issue downstream.
Consider this step:
(Note: this function returns a rejected promise.)
For me, this code results in QUnit hanging and timing out. The error is visible in console as "uncaught error in promise", but not in QUnit output.
I tried to follow Yadda codebase from here and got lost in callbacks.
To resolve the issue, a rejected promise must be handled as a failed assertion.
PS I :heart: promises and I do want to write my steps like shown above.