Overwrite readFile as a query for Cypress 13

Proprietary

cy.readFile() is a query in Cypress 13 and can no longer be overwritten with Cypress.Commands.overwrite(). Changes Cypress.Commands.overwrite('readFile', ...) to Cypress.Commands.overwriteQuery('readFile', ...). The overwriting function itself is not changed, and must now return a function as queries do.

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

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