2.0.1 • Published 4 years ago
@binhpv/cypress-image-snapshot v2.0.1
@binhpv/cypress-image-snapshot
This is a fork of pkerschbaum/cypress-image-snapshot with following changes applied:
- Revert the relative snapshot folder since it's too hard to many many files.
Installation
Using npm:
npm install --save-dev @binhpv/cypress-image-snapshot jest-image-snapshotUsing yarn:
yarn add --dev @binhpv/cypress-image-snapshot jest-image-snapshotthen add the following in your project's <rootDir>/cypress/plugins/index.js:
import { addMatchImageSnapshotPlugin } from '@binhpv/cypress-image-snapshot/lib/plugin';
module.exports = (on, config) => {
addMatchImageSnapshotPlugin(on, config);
};and in <rootDir>/cypress/support/commands.js add:
import { addMatchImageSnapshotCommand } from '@binhpv/cypress-image-snapshot/lib/command';
addMatchImageSnapshotCommand();