I have a simple component integration test:
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'); });
The source code for the .js component is similar:
export default Ember.Component.extend({ layout, init() { this._super(...arguments); throw 'my-custom-input component error'; } }
While my version of ember-cli was 2.3.0, the test passed. However, after I upgraded the version of ember-cli to version 2.11.1, the test failed. Error:
actual: > false expected: > true
Why does ember rendering start to swallow an exception that has occurred?
source share