Currently, cy.writeFile return the contents written to the file, which is not the same behavior as fs. In the case of appends, it yields only what was appended and not the entire file.
It should return null, to align with libraries with similar functionality.
Currently,
cy.writeFilereturn the contents written to the file, which is not the same behavior as fs. In the case of appends, it yields only what was appended and not the entire file.It should return null, to align with libraries with similar functionality.