Visitar URL original
refactor(router): Remove RouterTestingModule in favor of RouterModule… by atscott · Pull Request #49427 · angular/angular · GitHub
The Wayback Machine - https://web.archive.org/web/20230331134226/https://github.com/angular/angular/pull/49427
Skip to content
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

refactor(router): Remove RouterTestingModule in favor of RouterModule… #49427

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

atscott
Copy link
Contributor

@atscott atscott commented Mar 14, 2023

….forRoot

RouterTestingModule is not needed as of v16. Instead, TestBed automatically provides MockPlatformLocation in order to help test navigations in the application. The location mocks in the RouterTestingModule aren't necessary anymore.

There doesn't appear to be any real documentation around RouterTestingModule other than the API docs.

@atscott atscott added area: router target: major This PR is targeted for the next major release labels Mar 14, 2023
@ngbot ngbot bot added this to the Backlog milestone Mar 14, 2023
….forRoot

`RouterTestingModule` is not needed as of v16. Instead, TestBed
automatically provides `MockPlatformLocation` in order to help test
navigations in the application. The location mocks in the
RouterTestingModule aren't necessary anymore.

There doesn't appear to be any real documentation around
`RouterTestingModule` other than the API docs.
@atscott atscott marked this pull request as ready for review March 30, 2023 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: router target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants