angular/aio/content/examples/testing
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
..
e2e/src docs: make all examples compatible with strict mode (#41999) 2021-05-17 10:42:18 -07:00
src docs(router): Update component testing to user RouterTestingHarness (#48553) 2023-03-02 13:17:17 -08:00
BUILD.bazel build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
example-config.json build(bazel): incrementally run aio example e2e tests 2022-11-22 13:51:16 -07:00
stackblitz.json build(docs-infra): remove link to custom Stackblitz for running tests (#44085) 2021-11-08 18:12:16 +00:00