It would be nice to have a --skip-tests flag in the ng new / init command.
I know it is a very bad practice to omit writing unit and e2e tests but it would be a useful flag for barbarians like me. :dancer:
I wanted to know your opinion about it before making a PR.
If ng new myApp --skip-tests is run, should the angular-cli.json be updated to change the following:
"spec": {
"class": false,
"component": true, // change to false
"directive": true, // change to false
"module": false,
"pipe": true, // change to false
"service": true // change to false
}
That way the --skip-tests flag will affect the whole project, not just the ng new/init command.
Closing as it has been implemented.
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
If
ng new myApp --skip-testsis run, should theangular-cli.jsonbe updated to change the following:That way the
--skip-testsflag will affect the whole project, not just theng new/initcommand.