Is there any command line argument that will help generating angular component but not create unit tests file
1 Answer
Based on the docs the nc generate component command has a --skip-tests flag:
Do not create "spec.ts" test files for the new component.
https://angular.io/cli/generate#component
Example:
ng generate component MyComponent --skip-tests
1 Comment
aghwotu
There is a typo there. There is an
s missing at the end. It should be --skip-tests.