After upgrading to Ember 2.10.0, our component unit tests started breaking when willDestroyElement runs because this.$() is now returning undefined. This was not happening in Ember 2.9.0.
You can see this happening in this ember-twiddle.
This looks like a bug, we should be able to use this.$() in willDestroyElement, especially to remove event listeners.
Bug flow:
Renderer calls remove method which contains _transitionTo('destroying') function call link_transitionTo change currentState to destroying link_states lookup ends up finding destroying state linkdefault state link1 link2undefined for $() calls link@omarestrella @kamilogorek this is fixed in 2.10.2, thanks for reporting!
Most helpful comment
@omarestrella @kamilogorek this is fixed in 2.10.2, thanks for reporting!