Skip to content

refactor-jasmine-vitest: add support for spy call arguments migration #33112

@HarelM

Description

@HarelM

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions