mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
3c6258c85b
The `setupTestingRouter` function is a factory function for creating a new instance of the `Router`. This function is effectively a no-op. Developers should use `RouterModule.forRoot` or `provideRouter` in tests instead. BREAKING CHANGE: The `setupTestingRouter` function has been removed. Use `RouterModule.forRoot` or `provideRouter` to setup the `Router` for tests instead. PR Close #51826