Command
generate
Description
When running the ng g @schematics/angular:refactor-jasmine-vitest on a project which has the following line (for example, I have a few of those in my unit tests):
expect(spy.calls.all()[2].args[0]).toBeInstanceOf(RemoveShareUrlAction);
The migration does not remove .args and the code that was generated does not compile
Describe the solution you'd like
In this specific case, the solution is simply to remove .args and the rest will work as expected.
Describe alternatives you've considered
search and replace using the IDE
Command
generate
Description
When running the
ng g @schematics/angular:refactor-jasmine-viteston a project which has the following line (for example, I have a few of those in my unit tests):expect(spy.calls.all()[2].args[0]).toBeInstanceOf(RemoveShareUrlAction);The migration does not remove
.argsand the code that was generated does not compileDescribe the solution you'd like
In this specific case, the solution is simply to remove
.argsand the rest will work as expected.Describe alternatives you've considered
search and replace using the IDE