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
Apparently, the service is not really overwritten. The console.log outputs the correct, overwritten value, however the component itself does not seem to use the injected session. My component is basically empty (the userSession-service is injected in a initializer into all components).
There I have a simple component, where I inject a service and output a simple property. In my component integration test, I overwrite the service, but the output of the component is not actually changed.
The text was updated successfully, but these errors were encountered:
I've got a solution that I am working on, and will close this in favor of tracking in emberjs/ember-test-helpers#108 (because the issue is ultimately upstream in ember-test-helpers).
I have a component test like this:
Apparently, the service is not really overwritten. The console.log outputs the correct, overwritten value, however the component itself does not seem to use the injected session. My component is basically empty (the userSession-service is injected in a initializer into all components).
I created a small repo reproducing the issue with a minimal setup:
https://github.com/mydea/ember-cli-example-app-for-github/tree/integration-test-service-injection
There I have a simple component, where I inject a service and output a simple property. In my component integration test, I overwrite the service, but the output of the component is not actually changed.
The text was updated successfully, but these errors were encountered: