tomwhite007/rename-angular-component

Rename service class names inside test files

Closed this issue · 0 comments

Is your feature request related to a problem? Please describe.
The extension does not rename service occurrences that are referenced inside .spec.ts files. Typical examples include when you use the jasmine.createSpyObj such as:

const dataServiceSpy = jasmine.createSpyObj('DataService', ['getData']);

In the previous snippet, the DataService value remains unchanged after renaming the service.

Describe the solution you'd like
It would be great if the rename process would affect string occurrences of service classes inside *.spec.ts files.

Describe alternatives you've considered

Additional context