2

I want to create new folder with code ng g c recipes --spec false but in the terminal the results is Unknown option: '--spec' Unknown option: 'false' .

1

2 Answers 2

2

The correct option for not generating .spec.ts-files is --skipTests true.

(This will generate a component btw, but since you tried this direction of option I assume you meant that.)

Sign up to request clarification or add additional context in comments.

Comments

2

Just replace --spec false with --skipTests=true.

You can find the full option list in here: https://angular.io/cli/generate#component

Comments

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.