7ac8b02ec5
test.sh is no longer needed... all the tests should now be executed via bazel. if for whatever reason we need to run the legacy unit test setup, we should should follow the commands that we use to execute those tests in .circle/config.yaml PR Close #27937
24 lines
1020 B
Markdown
24 lines
1020 B
Markdown
# Debugging Angular
|
|
|
|
The Angular project has comprehensive unit tests for the core packages and the tools.
|
|
The core packages are tested both in the browser (via Karma) and on the server (via Node.js).
|
|
|
|
## Debugging in Karma
|
|
|
|
It is useful to focus your debugging on one test at a time by changing that test to be
|
|
defined using the `fit(...)` function, rather than `it(...)`. Moreover it can be helpful
|
|
to place a `debugger` statement in this `fit` clause to cause the debugger to stop when
|
|
it hits this test.
|
|
|
|
Read more about starting the debugger for Karma with Bazel in the [BAZEL.md](./BAZEL.md)
|
|
document.
|
|
|
|
## Debugging in Node
|
|
|
|
It is useful to focus your debugging on one test at a time by changing that test to be
|
|
defined using the `fit(...)` function, rather than `it(...)`. Moreover it can be helpful
|
|
to place a `debugger` statement in this `fit` clause to cause the debugger to stop when
|
|
it hits this test.
|
|
|
|
Read more about starting the debugger for NodeJS tests with Bazel in the [BAZEL.md](./BAZEL.md)
|
|
document. |