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
For angular 8+ you just need to add
--skipTests=true
in the end
ng g c component-name --skipTests=true
g is abbreviated to generate. c is abbreviated to component
you can also use
ng generate component component-name --skipTests=true