ember.js: Asserting error thrown no longer works as of 2.11
The following test, no longer run after we start to use 2.11.1.
test('it throws error my-custom-input is called', function(assert) {
assert.throws(() => {
this.render(hbs`{{my-custom-input}}`);
}, /my-custom-input component error/, 'Error must have been thrown');
});
I saw mocha users had faced with nearly the same problems: https://github.com/emberjs/ember-mocha/issues/141
SO Question: http://stackoverflow.com/questions/42781085/ember-render-hbs-swallowing-thrown-error Slack Archive: https://embercommunity.slack.com/archives/-testing/p1489479464001332
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 11
- Comments: 15 (8 by maintainers)
Commits related to this issue
- Skip test related to testing thrown errors According to this ticket (https://github.com/emberjs/ember.js/issues/15013) and this ticket (https://github.com/emberjs/ember-mocha/issues/141) ember 2.11 b... — committed to adopted-ember-addons/emberx-select by Robdel12 7 years ago
- Upgrade addon CLI to 2.12.1 (#183) * Upgrade ember-cli 2.11.0 * Upgrade to ember-cli 2.12.1 * Update mocha tests * ember#release seems to be borked. * Skip test related to testing thrown ... — committed to adopted-ember-addons/emberx-select by Robdel12 7 years ago
- test(errors): Skip test related to errors Asserting error thrown no longer works as of ember 2.11 see [emberjs/ember.js#15013](https://github.com/emberjs/ember.js/issues/15013) and [emberjs/ember-moc... — committed to bmeurant/ember-array-contains-helper by deleted user 7 years ago
- test(errors): Skip test related to errors Asserting error thrown no longer works as of ember 2.11 see [emberjs/ember.js#15013](https://github.com/emberjs/ember.js/issues/15013) and [emberjs/ember-moc... — committed to bmeurant/ember-array-contains-helper by deleted user 7 years ago
- test(errors): Skip test related to errors Asserting error thrown no longer works as of ember 2.11 see (emberjs/ember.js#15013) and (emberjs/ember-mocha#141) — committed to bmeurant/ember-array-contains-helper by deleted user 7 years ago
- test(errors): Skip test related to errors Asserting error thrown no longer works as of ember 2.11 see (emberjs/ember.js#15013) and (emberjs/ember-mocha#141) — committed to bmeurant/ember-array-contains-helper by deleted user 7 years ago
- Updated to ember-cli 2.12.2 and ember 2.11.0 Note that I cannot update to ember 2.12 just yet until there is a resolution for https://github.com/emberjs/ember.js/issues/15013 — committed to tzellman/ember-reactive-helpers by tzellman 7 years ago
- Updated to ember 2.12.2 For now, I am skipping the three tests that assert that errors are thrown, until I can find a resolution for https://github.com/emberjs/ember.js/issues/15013 Additionally, I f... — committed to tzellman/ember-reactive-helpers by tzellman 7 years ago
- Skipping assertion check Currently you cannot test assertions since Ember 2.11 due to this bug: https://github.com/emberjs/ember.js/issues/15013 — committed to echobind/ember-links-with-follower by alvincrespo 7 years ago
- (f) A possible fix for the issue emberjs/ember.js#15013 — committed to ocrest/ember-test-helpers by ocrest 7 years ago
- Skip test related to Ember adapter issue https://github.com/emberjs/ember.js/issues/15013 — committed to mitchlloyd/ember-islands by mitchlloyd 7 years ago
This was fixed by https://github.com/emberjs/ember.js/pull/15871, which essentially reverts https://github.com/emberjs/ember.js/pull/14898 and adds a bunch of tests.
Just came across this same issue while attempting to update an addon from ember/cli
2.9. Has anyone found a decent workaround forember-cli-chaiusage?