Feature (usability)
Cypress generates a fixture example on every run if there is no cypress/fixtures directory. A project with existing Cypress tests but no fixtures (an empty cypress/fixtures directory) will trigger this behavior for every next developer who clones it, as the empty directory isn't known to git. Whoops, that's confusing to collaborators!
I expect Cypress not to generate any files on my behalf for a project that has already had Cypress set up by my team. This might mean:
.keep files in the cypress/fixtures directoryDelete the cypress/fixtures folder and run the tests.
N/A
I assume this happens for other auto-generated files as well, I just happened to run into it with the fixtures directory.
Also applies to the cypress/support folder. I've had to add these folders to .gitignore and .eslintignore because the autogenerated code doesn't conform to my eslint config.
Bump, this is really irritating behaviour.
This will be covered as part of the cypress init proposal https://github.com/cypress-io/cypress/issues/619
This is still an issue if you use cypress open.
Yes, this is a duplicate of https://github.com/cypress-io/cypress/issues/619
Most helpful comment
Also applies to the
cypress/supportfolder. I've had to add these folders to.gitignoreand.eslintignorebecause the autogenerated code doesn't conform to my eslint config.