Debug Tests in NG Test

前端 未结 5 708
我在风中等你
我在风中等你 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:43

    You can simply add a 'debugger' where you want to debug and run

    ng test
    

    When the chrome browser opens, turn on the dev tools and it will stop on your 'debugger'

提交回复
热议问题