skovhus / jest-codemods

Codemods for migrating to Jest https://github.com/facebook/jest 👾
MIT License
878 stars 81 forks source link

jasmine *.calls.allArgs() should be replaced by *.mock.calls #604

Closed jase88 closed 2 weeks ago

jase88 commented 3 weeks ago

jasmine has a namespace calls on spies with a method called allArgs() , see their docs.

Desired behaviour

Input:

mySpy.calls.allArgs();

should be transformed to:

mySpy.mock.calls;