Angular 6 + CLI (TypeScript) - How to stop generating .spec.ts test files

后端 未结 11 988
一向
一向 2020-12-13 05:52

I know it\'s kind of a bad practice, but bear with me:

I\'m using Angular-CLI, particularly ng g to generate all of my classes. However

11条回答
  •  不思量自难忘°
    2020-12-13 06:14

    For angular 8+:

    Option "spec" is deprecated: Use "skipTests" instead, so if you want to create a new component use:

    ng g c my-new-component --skipTests=true
    

提交回复
热议问题