-
Notifications
You must be signed in to change notification settings - Fork 26.3k
feat(core): remove TestBed.get #60414
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
2b0888a
to
db7c556
Compare
`TestBed.get` isn't type safe and has been deprecated for several years now. These changes remove it from the public API and a follow-up change will add an automated migration to `TestBed.inject`. BREAKING CHANGE: * `TestBed.get` has been removed. Use `TestBed.inject` instead.
Adds a migration that will move users off the deprecated `TestBed.get` method.
db7c556
to
2abad2f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Reviewed-for: fw-general
Reviewed-for: fw-security
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Reviewed-for: public-api
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Reviewed-for: fw-security
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Reviewed-for: fw-security
); | ||
|
||
await runMigration(); | ||
expect(tree.readContent('/test.ts')).toContain( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super nit, but maybe expect it not to contain TestBed.get?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed-for: public-api
Passing TGP, once a handful of clients are cleaned up. |
This PR was merged into the repository by commit 34f0453. The changes were merged into the following branches: main |
Adds a migration that will move users off the deprecated `TestBed.get` method. PR Close #60414
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. |
TestBed.get
isn't type safe and has been deprecated for several years now. These changes remove it from the public API.BREAKING CHANGE:
TestBed.get
has been removed. UseTestBed.inject
instead.