1

Is there any command line argument that will help generating angular component but not create unit tests file

1 Answer 1

2

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
Sign up to request clarification or add additional context in comments.

1 Comment

There is a typo there. There is an s missing at the end. It should be --skip-tests.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.