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
pkozlowski-opensource
left a comment
There was a problem hiding this comment.
LGTM
Reviewed-for: fw-general
Reviewed-for: fw-security
devversion
left a comment
There was a problem hiding this comment.
LGTM
Reviewed-for: public-api
jelbourn
left a comment
There was a problem hiding this comment.
LGTM
Reviewed-for: fw-security
josephperrott
left a comment
There was a problem hiding this comment.
LGTM
Reviewed-for: fw-security
| ); | ||
|
|
||
| await runMigration(); | ||
| expect(tree.readContent('/test.ts')).toContain( |
There was a problem hiding this comment.
Super nit, but maybe expect it not to contain TestBed.get?
AndrewKushnir
left a comment
There was a problem hiding this comment.
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.getisn't type safe and has been deprecated for several years now. These changes remove it from the public API.BREAKING CHANGE:
TestBed.gethas been removed. UseTestBed.injectinstead.