How to prevent removing error pictures in Cypress?

Viewed 25

I want to prevent removing screenshots in Cypress. Each time the previous one is getting removed.

How can I prevent that in Cypress?

Because I want to keep all screenshots.

/Users/mac/cypress/cypress/screenshots
1 Answers

In cypress.json

Set "trashAssetsBeforeRuns": false

Related