question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TestBed.get is considered deprecated by the docs

See original GitHub issue

Description

TestBed.get is considered deprecated according to the angular.io docs. Even though it isn’t deprecated according to the changelog.

🔬 Minimal Reproduction

What’s the affected URL?**

https://angular.io/api/core/testing/TestBed#get

Expected vs Actual Behavior**

Expected only one overload to be deprecated, as specified in the changelog: https://github.com/angular/angular/blob/master/CHANGELOG.md#breaking-changes

📷Screenshot

image

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ajitsinghkalercommented, Apr 19, 2020

@gkalpak @kapunahelewong we can close this test bed.get is deprecated in v9.0.0

0reactions
angular-automatic-lock-bot[bot]commented, May 21, 2020

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What's the difference between TestBed.get and new ...
As for the TestBed.get() being deprecated, in Angular 8.0.0, only the specific overload that allows any type was deprecated (see https://github.
Read more >
Angular – What's the difference between TestBed.get and ...
As for the TestBed.get() being deprecated, in Angular 8.0.0, only the specific overload that allows any type was deprecated (see https://github.com/angular ...
Read more >
TestBed
TestBed is the primary api for writing unit tests for Angular applications and libraries. ... get()link ... Deprecated from v9.0.0 use TestBed.inject ...
Read more >
@angular/router-deprecated | Yarn - Package Manager
Important: This documentation covers modern versions of Yarn. For 1.x docs, see classic.yarnpkg.com. Yarn. ≡. Home · Getting started.
Read more >
Changelog
The Test Runner has a new 'Docs' menu with links and prompts specific to helping you get started writing tests, set up in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found