Is there a way to get rid of the spec.ts file in Angularjs 2, whenever I create a new component. I know this is for testing purpose but what if I don't need it.
May be there is some setting to disable this specific testing file.
Is there a way to get rid of the spec.ts file in Angularjs 2, whenever I create a new component. I know this is for testing purpose but what if I don't need it.
May be there is some setting to disable this specific testing file.
For angular 6 add this in angular.json inside
"schematics":{}
:OR
as Franklin Pious sugested, run this command:
According to the fix #156 you can create a component without spec file by using
For Angular 6
Simply create Component with this simple command in Angular 7
or if really dont want to include it in any component simply update angular.json
For Angular 8:
ng generate component mycomponent --skipTests=false
For Angular 7 and higher this will work :
or
ng generate component componentname --skipTests=true