Generating Component without spec.ts file in Angular 2+

前端 未结 25 969
轮回少年
轮回少年 2021-02-01 00:48

Is there a way to get rid of the spec.ts file in Angular 2+, whenever I create a new component. I know this is for testing purpose but what if I don\'t need it.

May be t

相关标签:
25条回答
  • 2021-02-01 01:19

    According to the fix #156 you can create a component without spec file by using

    ng generate component my-comp --nospec
    
    0 讨论(0)
提交回复
热议问题