ember-learn / ember-learn/guides-source

Document stubbing services caveat

Open
#1,262 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
161
Forks
512
Avg merge
4d 9h
Merged PRs (30d)
4

Description

https://guides.emberjs.com/release/testing/testing-components/#toc_stubbing-services

This section shows how to stub a service in a component test, but there is a caveat. If a service was accessed in an initializer, calling `register` will not work. This should be documented somehow. A workaround would be nice as well, but I don't think there *is* a good workaround at the moment.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.