Completely removing tests from angular4

后端 未结 4 904
没有蜡笔的小新
没有蜡笔的小新 2021-02-07 00:39

I have built a really small application using angular4. I have the main app component, two subcomponents and one service. I feel like I dont need tests for such a small applicat

4条回答
  •  眼角桃花
    2021-02-07 01:26

    In the most recent versions of Angular as of 2020 onwards, one can simply use --skip-tests for example:

    ng n c my-component  --skip-test
    

    Posting this 'cause I noticed that the above mentioned answers don't work any longer.

提交回复
热议问题