I am working on a cypress project. The package.json has commands to delete old report folder and create new folder with same name.
I achieve this by using windows commands in package.json:
“Clean-reports”: “rmdir /s /q cypress\reports && mkdircypress\reports” “Test”:”npm run Clean-reports && cypress run”
But when running this project on gitlab pipeline It gets stuck on rmdir command.
How do we achieve directory deletion and creation when running tests over gitlab pipeline ??