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.
Asked: 2022-06-04 11:00:00 +0000
Seen: 12 times
Last updated: Sep 18 '21