Replace cy.stub(object, name, fn) for Cypress 15

Proprietary

Cypress 15 removed the three-argument form of cy.stub(). Changes cy.stub(object, name, fn) to cy.stub(object, name).callsFake(fn) when fn is a function or arrow function.

org.openrewrite.nodejs.migrate.cypress.MigrateCypress15StubSignature
mod run . --recipe=org.openrewrite.nodejs.migrate.cypress.MigrateCypress15StubSignature

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.