If your tests aren't working as you expect them to, you can inspect and debug them in the browser.
Debug specs in the browser in the same way that you debug an application.
Ctrl-Shift-I
on Windows; Command-Option-I
in macOS).1st.spec.ts
test file (Control/Command-P, then start typing the name of the file).
© 2010–2021 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v12.angular.io/guide/test-debugging