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
Use also the following command if you want to skip your spec.ts file:
ng g c try-it --skipTests=true
where
g c => generate component , try-it => component name , --skipTest=true => == -- spec false.
g c
try-it
--skipTest=true
-- spec false