generating component in angular without spec file

JavaScript
ng generate component --skipTests=true component-name
--skipTests=true|false. When true, does not create "spec. ts" test files for the new component / directive / class / guardng g c --skipTests=true component-name
Source

Also in JavaScript: