2.0.1 • Published 2 years ago

@binhpv/cypress-image-snapshot v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@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-snapshot

Using yarn:

yarn add --dev @binhpv/cypress-image-snapshot jest-image-snapshot

then 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();

Syntax, Usage, ...

See jaredpalmer/cypress-image-snapshot.