I have a simple component integration test:
test(\'it throws error my-custom-input is called\', function(assert) {
assert.throws(() => {
this.
Well I am not quite sure why Ember community decided to break the test explained; but here is the fix if anyone needs it.
You need to install ember-qunit-assert-helpers via
ember install ember-qunit-assert-helpers
You need to change your code that throws
an exception to Ember.assert
and in your test class you just need to use assert.expectAssertion
instead of assert.throws
.
The answer is provided from the github issue at the following address.