Replace cy.stub(object, name, fn) for Cypress 15
ProprietaryCypress 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. MigrateCypress15StubSignaturemod run . --recipe= org. openrewrite. nodejs. migrate. cypress. MigrateCypress15StubSignatureInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.