angular/aio/content
Andrew Scott e7948d30c5 docs(router): Update component testing to user RouterTestingHarness (#48553)
This commit updates the documentation on testing the
`Router` to use the `RouterTestingHarness` rather than stubs.

The stubs described in the previous form of this document actually
creates tests which are incapable of catching bugs related to the
component's interaction with the `Router`. In addition, managing the
stubs is more difficult than using the real `Router` classes.

Stubbing something like the `RouterLink` is quite harmful because it
neither tests the actual URL being created, nor the end result of the
navigation. There have been serveral bug fixes in the Router over the
years the would change the outcome of these but would not be caught by
tests which create a stub.

PR Close #48553
2023-03-02 13:17:17 -08:00
..
cli docs: update Angular CLI help [main] (#49119) 2023-02-17 11:10:30 -08:00
demos/first-app docs: bump first-app to 15.2 (#49217) 2023-02-27 08:03:46 -08:00
errors docs: add NG0403.md for Bootstrapped NgModule doesn't specify which component to initialize error (#48483) 2023-01-04 09:59:24 -08:00
examples docs(router): Update component testing to user RouterTestingHarness (#48553) 2023-03-02 13:17:17 -08:00
extended-diagnostics docs: Add NG8107 entry : Optional chain not nullable extended diagnostic (#49287) 2023-03-02 19:56:37 +00:00
guide docs(router): Update component testing to user RouterTestingHarness (#48553) 2023-03-02 13:17:17 -08:00
images docs: remove former team members from bios (#48999) 2023-02-14 18:46:20 +01:00
marketing docs: change link for Angular Projects book (#49198) 2023-02-27 08:05:20 -08:00
special-elements docs(docs-infra): fix minor typos in angular.io (#47295) (#47295) 2022-09-07 10:47:21 -07:00
start docs: remove empty constructors & ngOnInit() (#48576) 2023-01-05 14:49:38 -08:00
tutorial docs: improve section title in TOH-pt4 (#49208) 2023-02-28 08:16:38 -08:00
BUILD.bazel ci: add Angular CLI help pages action (#48577) 2023-01-10 08:01:38 -08:00
file-not-found.md docs: improve markdown (#45325) 2022-04-08 19:36:30 +00:00
license.md docs: improve markdown (#45325) 2022-04-08 19:36:30 +00:00
navigation.json docs: add guide for standalone migration (#49044) 2023-02-16 15:33:18 -08:00