Debug Tests in NG Test

前端 未结 5 718
我在风中等你
我在风中等你 2021-01-31 02:12

I am using Angular CLI and VSCode but none of my breakpoints in my spec files seem to be getting hit when I run ng test?

Do I need to do some config?

5条回答
  •  长发绾君心
    2021-01-31 02:27

    Just to add to the other answers:

    • Follow the instructions @titusfx mentioned.
    • In the terminal run ng test.
    • In Visual Studio Code debug view select ng test from the drop down.
    • you might need to refresh the browser if cannot hit the break points the first time.

提交回复
热议问题