A missing schematic for creating Angular spec.
npm i -D ngx-spec
Supported types are
const supportedTypes = ['component', 'directive', 'guard', 'service', 'pipe', 'module'];
Run:
ng g ngx-spec:spec path/my.service
or
ng g ngx-spec:spec path/my.service.ts
See the story behind on stackoverflow and on Angular CLI github issue.
MIT