ng g c skip test4 code example
Example 1: spec false not working
ng generate component --skipTests=true component-name
Example 2: generating component in angular without spec file
ng g c --skipTests=true component-name
ng generate component --skipTests=true component-name
ng g c --skipTests=true component-name