Skip to content

cy.writeFile should resolve to null #2466

@lilaconlee

Description

@lilaconlee

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.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions