You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But that means it's impossible to write a unit test that stubs the router service, because setupContext from @ember/test-hepers (which is what backs setupTest from 'ember-qunit') will run this initializer before users have a chance to register any overrides.
So if people have unit tests against a stubbed router service, and then they add this addon, those tests break.
The text was updated successfully, but these errors were encountered:
This addon eagerly instantiates its service in an instance-initializer:
ember-router-scroll/addon/instance-initializers/ember-router-scroll.js
Line 3 in 2f17728
Which also eagerly instantiates the router service:
ember-router-scroll/addon/services/router-scroll.js
Line 72 in 2f17728
But that means it's impossible to write a unit test that stubs the router service, because
setupContext
from@ember/test-hepers
(which is what backssetupTest
from 'ember-qunit') will run this initializer before users have a chance to register any overrides.So if people have unit tests against a stubbed router service, and then they add this addon, those tests break.
The text was updated successfully, but these errors were encountered: