Search code examples
automation

How to prevent removing error pictures in Cypress?


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

Solution

  • In cypress.json

    Set "trashAssetsBeforeRuns": false