create class without specs file 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