Open JJ opened 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?
up
When I try to use it, I get this error:
And, sure enough, this is what's in that file:
Which does not correspond to the plugin.js (which includes that function) that is in the repo. Is there something I'm missing here?