exclude spec file angular cli 9 code example Example: angular cli don't generate spec ng g component componentName --skipTests=true