SCREENSHOTS_DIR

The SCREENSHOTS_DIR specifies where all the screenshots are saved. It's relative to the ROOT_DIR.

πŸ’’ Default value: cypress-image-diff-screenshots

// cypress-image-diff.config.js
const config = {
  ROOT_DIR: 'visual-test',
  SCREENSHOTS_DIR: 'screenshots'
};

module.exports = config;

Output directory:

    .
    β”œβ”€β”€ visual-test
        β”œβ”€β”€ screenshots
            β”œβ”€β”€ baseline
            β”œβ”€β”€ comparison
            β”œβ”€β”€ diff

Last updated