🚀 Feature request
Command (mark with an x)
- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [X ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
Description
There are lots of Enterprise Angular Apps that have really spotty testing. There isn't a way to generate a .spec.ts file for an existing component or service. Wiring up a TestingModule for each component is a slow process by hand if you are not familiar with the code base.
Describe the solution you'd like
The ability to generate a spec file similar to that which ng generate component generates but from an existing component or service.
ng generate spec app.component.ts
Describe alternatives you've considered
🚀 Feature request
Command (mark with an
x)Description
There are lots of
EnterpriseAngular Apps that have really spotty testing. There isn't a way to generate a .spec.ts file for an existing component or service. Wiring up a TestingModule for each component is a slow process by hand if you are not familiar with the code base.Describe the solution you'd like
The ability to generate a spec file similar to that which
ng generate componentgenerates but from an existing component or service.ng generate spec app.component.tsDescribe alternatives you've considered