Cypress < v10
Cypress plugin
// cypress/plugin/index.js
module.exports = (on, config) => {
const getCompareSnapshotsPlugin = require('cypress-image-diff-js/plugin')
return getCompareSnapshotsPlugin(on, config)
};Cypress support
// cypress/support/index.js
require('./commands');
// cypress/support/commands.js
compareSnapshotCommand();Last updated