1 | initial version |
To stop Angular from generating a unit test file when generating a component, you can use the command line option --skipTests
when running the ng generate component
command.
Here are the steps:
ng generate component componentName --skipTests
Make sure to replace componentName
with the name of your component.
This command will generate the component without the unit test file.