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