🚀 feature request
When a spec file is generated by the CLI use Classname.name instead of the 'Classname'.
Relevant Package
@angular/cli
Description
It would be nice if the spec files would be generated in a way that makes them adaptable to change.
If a test is generated by the CLI the initial describe looks like this:
...
describe('AppComponent', () => {
...
When I change the name of the app component from AppComponent to AppComponent1. I have to change the name of the test by hand.
Describe the solution you'd like
The solution that I have in mind is to use the .name property of the typescript class. The describe would have the following structure.
...
describe(AppComponent.name, () => {
...
Now when the AppComponent name is changed through an IDE. The test name is automatically changed.
Cheers 🐵
🚀 feature request
When a spec file is generated by the CLI use Classname.name instead of the 'Classname'.
Relevant Package
@angular/cli
Description
It would be nice if the spec files would be generated in a way that makes them adaptable to change.
If a test is generated by the CLI the initial
describelooks like this:When I change the name of the app component from
AppComponenttoAppComponent1. I have to change the name of the test by hand.Describe the solution you'd like
The solution that I have in mind is to use the .name property of the typescript class. The describe would have the following structure.
Now when the AppComponent name is changed through an IDE. The test name is automatically changed.
Cheers 🐵