-
Notifications
You must be signed in to change notification settings - Fork 26.6k
docs(core): Mark TestBed.get as deprecated #32406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I would actually call this out as |
Done
It was already mentioned, but reworded now |
IDK why the test was failing, it didn't seem to be related to my change, but it looks like it's now passing after I sync'd |
GLOBAL APPROVAL |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
We should now use TestBed.inject
See #32200
Fixes #26491
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
TestBed.get
as@deprecated
What is the current behavior?
TestBed.get
is usableIssue Number: #26491
What is the new behavior?
TestBed.get
is usable BUT deprecated.We should now use
TestBed.inject
from Angular 9.0.0+Does this PR introduce a breaking change?
Not a breaking change but it will affect linters until users migrate, it should be a warning, not a failure.
Other information