generate a spec file angular component code example Example: generating component in angular without spec file ng g c --skipTests=true component-name