Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Cypress auto-generated files should have trailing newlines #502
Frequently (not sure if it's every file), when Cypress auto-generates a file for the user, the files do not include trailing newlines. This is an anti-pattern in general, see this discussion, and an added nuisance when using
I expect Cypress to be aware of common idioms and not generate extra work for users.
How to reproduce the current behavior:
Generate files and see what git says! Might be harder to see in CLI since git doesn't get a chance to complain for new files, normally the complaints happen in diffs. GitHub for Mac shows it clearly, though.