jaredpalmer / cypress-image-snapshot

Catch visual regressions in Cypress
MIT License
887 stars 160 forks source link

Does version 4.0.1 match published documentation? #203

Open JJ opened 3 years ago

JJ commented 3 years ago

When I try to use it, I get this error:

Error: 'addMatchImageSnapshotCommand' is not exported by node_modules/cypress-image-snapshot/plugin.js, imported by cypress/support/commands.js

And, sure enough, this is what's in that file:

'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.cachePath = undefined;

var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

exports.matchImageSnapshotOptions = matchImageSnapshotOptions;
exports.matchImageSnapshotResult = matchImageSnapshotResult;
exports.matchImageSnapshotPlugin = matchImageSnapshotPlugin;
exports.addMatchImageSnapshotPlugin = addMatchImageSnapshotPlugin;
//...

Which does not correspond to the plugin.js (which includes that function) that is in the repo. Is there something I'm missing here?

elibenjii commented 3 years ago

up