Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
module.exports = (on, config) => {
// `on` is used to hook into various events Cypress emits
// `config` is the resolved Cypress config
config = config.env || config
addMatchImageSnapshotPlugin(on, config)
return config
}
module.exports = (on, config) => {
addMatchImageSnapshotPlugin(on, config);
// on('file:preprocessor', cypressTypeScriptPreprocessor);
};
// to allows usage of a mock proxy
args['ignore-certificate-errors'] = true;
// https://github.com/cypress-io/cypress/issues/2102
if (browser.isHeaded) {
args['width'] = 1200;
args['height'] = 1200;
} else {
args['width'] = 1200;
args['height'] = process.platform === 'darwin' ? 1178 : 1200;
}
return args;
}
});
addMatchImageSnapshotPlugin(on, config);
};
module.exports = (on, config) => {
// `on` is used to hook into various events Cypress emits
// `config` is the resolved Cypress config
// https://github.com/palmerhq/cypress-image-snapshot#installation
addMatchImageSnapshotPlugin(on, config)
}
module.exports = (on, config) => {
// `on` is used to hook into various events Cypress emits
// `config` is the resolved Cypress config
addMatchImageSnapshotPlugin(on, config);
on('task', require('@cypress/code-coverage/task'));
on('file:preprocessor', require('@cypress/code-coverage/use-browserify-istanbul'));
};
module.exports = (on, config) => {
addMatchImageSnapshotPlugin(on, config);
};
module.exports = (on, config) => {
addMatchImageSnapshotPlugin(on, config);
};
module.exports = on => {
addMatchImageSnapshotPlugin(on);
};
module.exports = (on, config) => {
addMatchImageSnapshotPlugin(on, config);
};