Cypress · Middle · Question 76 of 77

What does cy.writeFile do?

Show the answer

Correct answer: Writes data to a file from the test

Explanation

It can save generated data or fixtures. Files go through the Node process, relative to the project root.

Further reading

Problem with a question

Cypress · Middle · question 76

Test yourself

Take the Cypress · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz