Angular CLI create .spec files for already existing components
Currently Angular CLI does not provide this functionality and it is not clear how and when it will be possible to manage it in official way. However, here is a library “ngx-spec” that generates the spec based on Angular CLI spec presets. If you are using vsCode the authors of ngx-spec recomend using this extension … Read more