DEV Community

Discussion on: Migrating to Cypress 10

Collapse
 
bvanderneut profile image
Bjorn van der Neut

It there a way to rerun the migration wizard through the command line for instance? Because somehow it did not start/work the first time so now it opens with still the old folder name "Integration" and also ".spec" instead of ".cy".

Yes I can rename it by hand but that's not handy with the many projects and files i have.

Thanks!

Collapse
 
jordanpowell88 profile image
Jordan Powell

The easiest way is to use git to undo any changes that happened as a result of the migration and run cypress again

Collapse
 
bvanderneut profile image
Bjorn van der Neut

I eventually fixed it with an powershell script.

get-childItem -Path "C:\cypress\" -recurse -Include *.spec.ts | rename-item -NewName { $_.name -replace ".spec.ts",".cy.ts" }