Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Adding a migration to replace TestBed.get with TestBed.injectΒ #32649

@timdeschryver

Description

@timdeschryver

πŸš€ Feature request

Command (mark with an x)

- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [x] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Description

With the deprecation of TestBed.get (#32406), would it be a good addition to add a schematic to update the usages to TestBed.inject?

Describe the solution you'd like

Something like the following?

https://github.com/angular/angular-cli/compare/master...timdeschryver:pr/testbed-migration?expand=1

Describe alternatives you've considered

/

Metadata

Metadata

Assignees

No one assigned

    Labels

    P5The team acknowledges the request but does not plan to address it, it remains open for discussionarea: testingIssues related to Angular testing features, such as TestBedfreq2: medium

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions