Cypress manual for configuring Reporters contains rm command which doesn't work in Windows, namely
rm cypress/results/* || true
I believe that this is the bug in the documentation, which advises using a Linux command in the Windows environment.
So the question is how it can be done in Windows? Moreover, I suppose to use the config file containing this command in Docker container which uses Linux core I believe. So the another problem is if I convert the command for Windows will I be able to use this file in my Docker container? Could somebody point me out the right way of using this command for the both OS? here is the link to Cypress manual containing this command https://docs.cypress.io/guides/tooling/reporters#Examples
del
command, or just open the directory in explorer and delete it's contents.bash
? It works on windows. Another great option WSL. Super recommended for Javascript development.rm
with-r
option which makesdel
andrm
different asdel
does not have such kind of option allowing to delete not only files but also directories recursivelycmd.exe
. If you switch to WSL you can just run everything in bash and commands likerm
will just be available exactly as you expect.