Is there a way to get rid of the spec.ts file in Angular 2+, whenever I create a new component. I know this is for testing purpose but what if I don\'t need it.
May be t
In recent Angular versions you can configure the cli generator to disable the creation of spec file for components and services in angular-cli.json
as follows:
"defaults": {
"component": { "spec": false },
"service": { "spec": false },
...
}
You can add extra lines to disable specs also for guards and classes and so on.