{"_id":"@caplin/cypress-image-snapshot","_rev":"6-6943674febd375998cbfa48fa98598dd","name":"@caplin/cypress-image-snapshot","dist-tags":{"latest":"4.3.1"},"versions":{"4.2.0":{"name":"@caplin/cypress-image-snapshot","version":"4.2.0","author":{"name":"Jack Cross","email":"jack@palmer.net"},"license":"MIT","_id":"@caplin/cypress-image-snapshot@4.2.0","maintainers":[{"name":"jtm-caplin","email":"jacob.middleton@caplin.com"},{"name":"brjs","email":"bladerunnerjs@caplin.com"},{"name":"mlabuhn","email":"marc.labuhn@caplin.com"}],"homepage":"https://github.com/caplin/cypress-image-snapshot#readme","bugs":{"url":"https://github.com/caplin/cypress-image-snapshot/issues"},"dist":{"shasum":"da103f97847a311718175574c3a6ff5639a14d06","tarball":"https://registry.npmjs.org/@caplin/cypress-image-snapshot/-/cypress-image-snapshot-4.2.0.tgz","fileCount":3,"integrity":"sha512-haIrN4rCdhgMEgiHbzWgjzIz+mI0kfNHGHjGa/LlL3ObiaUoEP6Mq1H2y7IWRw7M0ig7s8P7vhsfLGZGIAVSLQ==","signatures":[{"sig":"MEQCIGvZM1AF5cqBoryrcFEXPlrxBfW6n0I6PfXh+axOlClpAiAmTPraLdTeDjxI3nIAeBRrzMBX7BHVIe8nYuUyG9ospw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9796,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjGMGeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrHERAAhO8gQJA5a1hfFyuOzbFTaloz3sLlh7+vMUuqCidg5RSPKoqO\r\nfJMC93aE1YTZVq6ERY9K7HlX/aBMJpi1bqsBxUzK8rB5maSNKWVIXU5j6TYy\r\nkLIffpeNRwBwMuvbjUXCQh+3kZDglS+Yp1Fa38y0+mGexlzI2n/7B6TdiYjg\r\nj/9pNixAYvP2YqFzf2kr1yywovnY77aOffwE90qx9vxPuBKAnwcVLc3sUigx\r\nnuynZuhxdWLHz7D2OaMzG0Zqpa4R1dX5QsAGePL74BZeEpyId48x7G/wudge\r\n6gkPigmDTngpqYdrVAWGwy5nsKH4RC/5KevmmHVzUwwOGnAHwUob24IgIJPR\r\nc/NrHD/2C/rEPEYfxyBGjEFCdUiHrMwykD2WH/t/Umntv2FZ9kBnVpTJ6JZS\r\n7lAgo65CPmUdir9ZKpFEHkiHluKRBA3VFKiA7yQqZb1rtjKNVOLVYVzawWam\r\nNlNRyEskIoFELqwjYmyltBjDppGfS1NDM1vwlUWvekWEeSd2ehDTcO87zxN9\r\nY2GlTTvypE+2LSd+0IdleaZPmbtY5AF+vKLjrjsmGfw7p9irXITiYTywzLM6\r\n/01L3ptrn+tDWq1gpOoAUwHVmKRbakEj4P85Ta6bj5FruDyn8UvlmRbZchAN\r\n1uFiEJh+lRKAHvlb6iM81hfDgb7lcsqITjA=\r\n=nShH\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testPathIgnorePatterns":["<rootDir>/examples/","<rootDir>/node_modules/"]},"babel":{"plugins":["transform-object-rest-spread"],"presets":[["env",{"targets":{"node":"8.0"}}]]},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"engines":{"node":">=8"},"gitHead":"f9f909d3d8cd3c6c78d19627e33684be890fef03","scripts":{"lint":"eslint src","test":"jest","build":"babel src --out-dir .","release":"changeset publish","prebuild":"rimraf *.js","changeset":"changeset","prepublish":"npm run build"},"_npmUser":{"name":"jtm-caplin","email":"jacob.middleton@caplin.com"},"prettier":{"semi":true,"printWidth":80,"singleQuote":true,"trailingComma":"es5"},"repository":{"url":"git+https://github.com/caplin/cypress-image-snapshot.git","type":"git"},"_npmVersion":"8.11.0","description":"Cypress bindings for jest-image-snapshot.","directories":{},"_nodeVersion":"16.15.1","dependencies":{"glob":"^7.1.3","chalk":"^2.4.1","pkg-dir":"^3.0.0","fs-extra":"^7.0.1","term-img":"^4.0.0","jest-image-snapshot":"github:thecapdan/jest-image-snapshot"},"eslintConfig":{"env":{"cypress/globals":true},"extends":["airbnb-base","prettier"],"plugins":["cypress"]},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","husky":"^1.2.1","eslint":"^5.10.0","rimraf":"^2.6.2","prettier":"1.15.3","babel-cli":"^6.26.0","pretty-quick":"^1.8.0","@changesets/cli":"^2.13.1","babel-preset-env":"^1.7.0","eslint-plugin-import":"^2.14.0","eslint-plugin-cypress":"^2.1.3","eslint-config-prettier":"^3.3.0","eslint-config-airbnb-base":"^13.1.0","@changesets/changelog-github":"^0.2.8","babel-plugin-transform-object-rest-spread":"^6.26.0"},"peerDependencies":{"cypress":">4.5.0"},"_npmOperationalInternal":{"tmp":"tmp/cypress-image-snapshot_4.2.0_1662566814084_0.8986814287206617","host":"s3://npm-registry-packages"}},"4.2.1":{"name":"@caplin/cypress-image-snapshot","version":"4.2.1","author":{"name":"Jack Cross","email":"jack@palmer.net"},"license":"MIT","_id":"@caplin/cypress-image-snapshot@4.2.1","maintainers":[{"name":"jtm-caplin","email":"jacob.middleton@caplin.com"},{"name":"brjs","email":"bladerunnerjs@caplin.com"},{"name":"mlabuhn","email":"marc.labuhn@caplin.com"}],"homepage":"https://github.com/caplin/cypress-image-snapshot#readme","bugs":{"url":"https://github.com/caplin/cypress-image-snapshot/issues"},"dist":{"shasum":"4a6428fa98fe07ab26fed06514dc26a77b602262","tarball":"https://registry.npmjs.org/@caplin/cypress-image-snapshot/-/cypress-image-snapshot-4.2.1.tgz","fileCount":7,"integrity":"sha512-ffvSsHFXW2A9d+pLnV104eTtuTLxto7avHnnA2/B3tsyQGeVHf+XqtYEO4o8hwfKDURuogQnpcIIVePds01P2A==","signatures":[{"sig":"MEYCIQCihQ4X8KEaPYwrrAlKb2ofQI545rjtv7nDVyWKRUfmEAIhAPKMok3eYY3ua4n5YaKfTKQMmOBDXIxjEcrv4O5wm1M/","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21780,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjIxmZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoYxQ/7BlusneVNukZoThEo0ZY+gDG1WRkMBw69NZYAi1iKxc1VLrIN\r\n13i4FanRMjfWjlNuJ9COtjw4wkiOrWbYJ22nBGsEf9OobBWjQH6/wMSH4Ae3\r\nBFeJ3FMhHQmWVOOiyzJk0MI+ZjIkAxa4KdKavUx+qSi6ph5ZKcVKuaMhjnGr\r\noNIsc7PAEMIRsF14fG0HTJAjlEqDg7IkZrjju3pXdWWklVb1YvTWTZkikMHr\r\neMKukH1umjJvNdk0uZqoivP/fbnWIgBL4orFLczuwO7uWh+9j7lajHklTXd6\r\n8pSHO+XjuT/GMKgzsms8soimDOhH3UTTUEXyNWe6iaEGDjuBRG3S0tBX0up3\r\nyxzJOZPXQH6Sx75HokOtgc70z+Hp1VeKfHvpLBkaiVQz20d6EnxBqHnWLlQX\r\nhpuxg4Vmm3xtUHkH5JgKewIRWxTgpvs4/RBclcDils2TfA7+LvUk6lVqtjQy\r\n6ukVM7xmoOGV8/yBPPt5XWsaEflZZ99M2YcpRK9aetcsQ6gT87K3gyUD9xVG\r\nmJJyGIilG8yJNmIdAZVORwS2EiLg1O5HlGVnAW8XLi29gRm1SyMVRSBNX270\r\nBSeZc9nnANFj5nXIkd4scx2NIPVswk8aq0A/BzKLFSVkBgWPHlFPXtI2zgZc\r\ndeqU2PwmvYLtKJHRIIo3i0eV9LoU71vyk70=\r\n=Ex7B\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testPathIgnorePatterns":["<rootDir>/examples/","<rootDir>/node_modules/"]},"babel":{"plugins":["transform-object-rest-spread"],"presets":[["env",{"targets":{"node":"8.0"}}]]},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"engines":{"node":">=8"},"gitHead":"f9f909d3d8cd3c6c78d19627e33684be890fef03","scripts":{"lint":"eslint src","test":"jest","build":"babel src --out-dir .","release":"changeset publish","prebuild":"rimraf *.js","changeset":"changeset","prepublish":"npm run build"},"_npmUser":{"name":"jtm-caplin","email":"jacob.middleton@caplin.com"},"prettier":{"semi":true,"printWidth":80,"singleQuote":true,"trailingComma":"es5"},"repository":{"url":"git+https://github.com/caplin/cypress-image-snapshot.git","type":"git"},"_npmVersion":"8.11.0","description":"Cypress bindings for jest-image-snapshot.","directories":{},"_nodeVersion":"16.15.1","dependencies":{"glob":"^7.1.3","chalk":"^2.4.1","pkg-dir":"^3.0.0","fs-extra":"^7.0.1","term-img":"^4.0.0","jest-image-snapshot":"github:thecapdan/jest-image-snapshot"},"eslintConfig":{"env":{"cypress/globals":true},"extends":["airbnb-base","prettier"],"plugins":["cypress"]},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","husky":"^1.2.1","eslint":"^5.10.0","rimraf":"^2.6.2","prettier":"1.15.3","babel-cli":"^6.26.0","pretty-quick":"^1.8.0","@changesets/cli":"^2.13.1","babel-preset-env":"^1.7.0","eslint-plugin-import":"^2.14.0","eslint-plugin-cypress":"^2.1.3","eslint-config-prettier":"^3.3.0","eslint-config-airbnb-base":"^13.1.0","@changesets/changelog-github":"^0.2.8","babel-plugin-transform-object-rest-spread":"^6.26.0"},"peerDependencies":{"cypress":">4.5.0"},"_npmOperationalInternal":{"tmp":"tmp/cypress-image-snapshot_4.2.1_1663244696962_0.951049430530668","host":"s3://npm-registry-packages"}},"4.2.2":{"name":"@caplin/cypress-image-snapshot","version":"4.2.2","author":{"name":"Jack Cross","email":"jack@palmer.net"},"license":"MIT","_id":"@caplin/cypress-image-snapshot@4.2.2","maintainers":[{"name":"jtm-caplin","email":"jacob.middleton@caplin.com"},{"name":"brjs","email":"bladerunnerjs@caplin.com"},{"name":"mlabuhn","email":"marc.labuhn@caplin.com"}],"homepage":"https://github.com/caplin/cypress-image-snapshot#readme","bugs":{"url":"https://github.com/caplin/cypress-image-snapshot/issues"},"dist":{"shasum":"b0e8b4101e125aeeca6f0e3dc2c4a148c33fc778","tarball":"https://registry.npmjs.org/@caplin/cypress-image-snapshot/-/cypress-image-snapshot-4.2.2.tgz","fileCount":7,"integrity":"sha512-R2wTK83XWy3KxWpJYskXj9vHz81/MG0f8JAdfrcfHfO6aEiqTnAe0297DKfM/LTuid5lOspI6U+Vkk5+xxyWcA==","signatures":[{"sig":"MEYCIQDOiXvCurDqd6KfAvVXeIIIdDKcXanA8tQ6H+PmARyHmQIhAJksw7e9hvy4FlJ3d83MNzW76D9jcj9DLk6n973IlHb2","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21765},"jest":{"testPathIgnorePatterns":["<rootDir>/examples/","<rootDir>/node_modules/"]},"babel":{"plugins":["transform-object-rest-spread"],"presets":[["env",{"targets":{"node":"8.0"}}]]},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"engines":{"node":">=8"},"gitHead":"54787e86712b54e5e2fd296a6ab8b44a6000f7f3","scripts":{"lint":"eslint src","test":"jest","build":"babel src --out-dir .","release":"changeset publish","prebuild":"rimraf *.js","changeset":"changeset","prepublish":"npm run build"},"_npmUser":{"name":"jtm-caplin","email":"jacob.middleton@caplin.com"},"prettier":{"semi":true,"printWidth":80,"singleQuote":true,"trailingComma":"es5"},"repository":{"url":"git+https://github.com/caplin/cypress-image-snapshot.git","type":"git"},"_npmVersion":"9.5.1","description":"Cypress bindings for jest-image-snapshot.","directories":{},"_nodeVersion":"18.16.0","dependencies":{"glob":"^7.1.3","chalk":"^2.4.1","pkg-dir":"^3.0.0","fs-extra":"^7.0.1","term-img":"^4.0.0","@caplin/jest-image-snapshot":"4.5.1"},"eslintConfig":{"env":{"cypress/globals":true},"extends":["airbnb-base","prettier"],"plugins":["cypress"]},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","husky":"^1.2.1","eslint":"^5.10.0","rimraf":"^2.6.2","prettier":"1.15.3","babel-cli":"^6.26.0","pretty-quick":"^1.8.0","@changesets/cli":"^2.13.1","babel-preset-env":"^1.7.0","eslint-plugin-import":"^2.14.0","eslint-plugin-cypress":"^2.1.3","eslint-config-prettier":"^3.3.0","eslint-config-airbnb-base":"^13.1.0","@changesets/changelog-github":"^0.2.8","babel-plugin-transform-object-rest-spread":"^6.26.0"},"peerDependencies":{"cypress":">4.5.0"},"_npmOperationalInternal":{"tmp":"tmp/cypress-image-snapshot_4.2.2_1683756403185_0.11042908901122583","host":"s3://npm-registry-packages"}},"4.2.3":{"name":"@caplin/cypress-image-snapshot","version":"4.2.3","author":{"name":"Jack Cross","email":"jack@palmer.net"},"license":"MIT","_id":"@caplin/cypress-image-snapshot@4.2.3","maintainers":[{"name":"jtm-caplin","email":"jacob.middleton@caplin.com"},{"name":"brjs","email":"bladerunnerjs@caplin.com"},{"name":"mlabuhn","email":"marc.labuhn@caplin.com"}],"homepage":"https://github.com/caplin/cypress-image-snapshot#readme","bugs":{"url":"https://github.com/caplin/cypress-image-snapshot/issues"},"dist":{"shasum":"3af3ab0e1e8af7b13550244ff360aebe5c0c093f","tarball":"https://registry.npmjs.org/@caplin/cypress-image-snapshot/-/cypress-image-snapshot-4.2.3.tgz","fileCount":7,"integrity":"sha512-ciomXRwfacwNKH/pd3uwexZ7fs6CwiafDs0sl6QCgQ6QUIKJMrvp5yDeCcc0YX1lYFiZZuqFuS/GwQYvV1QJvA==","signatures":[{"sig":"MEYCIQCKM+VAYJfYS2b3+eNxssTx7UxGCv9b9wUTCauockg0PQIhANyrY/ufEA9Div2Z7eBSppQ4s63w+0/Fh57sIM5twTqz","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21765},"jest":{"testPathIgnorePatterns":["<rootDir>/examples/","<rootDir>/node_modules/"]},"babel":{"plugins":["transform-object-rest-spread"],"presets":[["env",{"targets":{"node":"8.0"}}]]},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"engines":{"node":">=8"},"gitHead":"54787e86712b54e5e2fd296a6ab8b44a6000f7f3","scripts":{"lint":"eslint src","test":"jest","build":"babel src --out-dir .","release":"changeset publish","prebuild":"rimraf *.js","changeset":"changeset","prepublish":"npm run build"},"_npmUser":{"name":"jtm-caplin","email":"jacob.middleton@caplin.com"},"prettier":{"semi":true,"printWidth":80,"singleQuote":true,"trailingComma":"es5"},"repository":{"url":"git+https://github.com/caplin/cypress-image-snapshot.git","type":"git"},"_npmVersion":"9.5.1","description":"Cypress bindings for jest-image-snapshot.","directories":{},"_nodeVersion":"18.16.0","dependencies":{"glob":"^7.1.3","chalk":"^2.4.1","pkg-dir":"^3.0.0","fs-extra":"^7.0.1","term-img":"^4.0.0","@caplin/jest-image-snapshot":"4.5.1"},"eslintConfig":{"env":{"cypress/globals":true},"extends":["airbnb-base","prettier"],"plugins":["cypress"]},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","husky":"^1.2.1","eslint":"^5.10.0","rimraf":"^2.6.2","prettier":"1.15.3","babel-cli":"^6.26.0","pretty-quick":"^1.8.0","@changesets/cli":"^2.13.1","babel-preset-env":"^1.7.0","eslint-plugin-import":"^2.14.0","eslint-plugin-cypress":"^2.1.3","eslint-config-prettier":"^3.3.0","eslint-config-airbnb-base":"^13.1.0","@changesets/changelog-github":"^0.2.8","babel-plugin-transform-object-rest-spread":"^6.26.0"},"peerDependencies":{"cypress":">4.5.0"},"_npmOperationalInternal":{"tmp":"tmp/cypress-image-snapshot_4.2.3_1683756507800_0.9168457347315049","host":"s3://npm-registry-packages"}},"4.3.0":{"name":"@caplin/cypress-image-snapshot","version":"4.3.0","author":{"name":"Jack Cross","email":"jack@palmer.net"},"license":"MIT","_id":"@caplin/cypress-image-snapshot@4.3.0","maintainers":[{"name":"jtm-caplin","email":"jacob.middleton@caplin.com"},{"name":"brjs","email":"bladerunnerjs@caplin.com"},{"name":"mlabuhn","email":"marc.labuhn@caplin.com"}],"homepage":"https://github.com/caplin/cypress-image-snapshot#readme","bugs":{"url":"https://github.com/caplin/cypress-image-snapshot/issues"},"dist":{"shasum":"f22519856ee4ad1193389d7abb4327861b6e18ba","tarball":"https://registry.npmjs.org/@caplin/cypress-image-snapshot/-/cypress-image-snapshot-4.3.0.tgz","fileCount":7,"integrity":"sha512-hZPnekWmGExmZyCMnpEatg91ivzntJSePWD9JNHNn1K8gOV+h8PHHZ47XZk2AWcO4c/xgByD04yB/GF8pIJlqw==","signatures":[{"sig":"MEUCIBfPBxv+o9uHzao6yj92gEfj8EUuq1IGOpmg5iAwx3aHAiEA98rdd8IQlYVY7XOA7LPM0ToOs6CCh4ktML3CHtdi0Os=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22158},"jest":{"testPathIgnorePatterns":["<rootDir>/examples/","<rootDir>/node_modules/"]},"babel":{"plugins":["transform-object-rest-spread"],"presets":[["env",{"targets":{"node":"8.0"}}]]},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"engines":{"node":">=8"},"gitHead":"9eae76c30f4d9ecdc7794890e8065e7badf57e1b","scripts":{"lint":"eslint src","test":"jest","build":"babel src --out-dir .","release":"changeset publish","prebuild":"rimraf *.js","changeset":"changeset","prepublish":"npm run build"},"_npmUser":{"name":"jtm-caplin","email":"jacob.middleton@caplin.com"},"prettier":{"semi":true,"printWidth":80,"singleQuote":true,"trailingComma":"es5"},"repository":{"url":"git+https://github.com/caplin/cypress-image-snapshot.git","type":"git"},"_npmVersion":"9.5.1","description":"Cypress bindings for jest-image-snapshot.","directories":{},"_nodeVersion":"18.16.0","dependencies":{"glob":"^7.1.3","chalk":"^2.4.1","pkg-dir":"^3.0.0","fs-extra":"^7.0.1","term-img":"^4.0.0","@caplin/jest-image-snapshot":"4.5.1"},"eslintConfig":{"env":{"cypress/globals":true},"extends":["airbnb-base","prettier"],"plugins":["cypress"]},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","husky":"^1.2.1","eslint":"^5.10.0","rimraf":"^2.6.2","prettier":"1.15.3","babel-cli":"^6.26.0","pretty-quick":"^1.8.0","@changesets/cli":"^2.13.1","babel-preset-env":"^1.7.0","eslint-plugin-import":"^2.14.0","eslint-plugin-cypress":"^2.1.3","eslint-config-prettier":"^3.3.0","eslint-config-airbnb-base":"^13.1.0","@changesets/changelog-github":"^0.2.8","babel-plugin-transform-object-rest-spread":"^6.26.0"},"peerDependencies":{"cypress":">4.5.0"},"_npmOperationalInternal":{"tmp":"tmp/cypress-image-snapshot_4.3.0_1686312160829_0.6122747515012281","host":"s3://npm-registry-packages"}},"4.3.1":{"name":"@caplin/cypress-image-snapshot","version":"4.3.1","author":{"name":"Jack Cross","email":"jack@palmer.net"},"license":"MIT","_id":"@caplin/cypress-image-snapshot@4.3.1","maintainers":[{"name":"jtm-caplin","email":"jacob.middleton@caplin.com"},{"name":"brjs","email":"bladerunnerjs@caplin.com"},{"name":"mlabuhn","email":"marc.labuhn@caplin.com"}],"homepage":"https://github.com/caplin/cypress-image-snapshot#readme","bugs":{"url":"https://github.com/caplin/cypress-image-snapshot/issues"},"dist":{"shasum":"9c49d033a9d7e7da8676586999f14f957ec89e52","tarball":"https://registry.npmjs.org/@caplin/cypress-image-snapshot/-/cypress-image-snapshot-4.3.1.tgz","fileCount":7,"integrity":"sha512-6SyxRVV33olgIZ/TCqNmFemq8PEAJgSf6sAGiKfrrP+TYmf7P2iK46292Zg8W/94BMcnN7/EZhAGq6QXUAbmlw==","signatures":[{"sig":"MEUCICSjHRnqkeG4QOZ0tTsjkTkX/o5Rw9RfH0IWmdFbPWEOAiEAi8GgupFXUsnXNfARNqJDGsykvrPynREbG0NScb7HRuI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22136},"jest":{"testPathIgnorePatterns":["<rootDir>/examples/","<rootDir>/node_modules/"]},"babel":{"plugins":["transform-object-rest-spread"],"presets":[["env",{"targets":{"node":"8.0"}}]]},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"engines":{"node":">=8"},"gitHead":"df23732a3d9945ab4a3593810e6635f1521d5ebf","scripts":{"lint":"eslint src","test":"jest","build":"babel src --out-dir .","release":"changeset publish","prebuild":"rimraf *.js","changeset":"changeset","prepublish":"npm run build"},"_npmUser":{"name":"jtm-caplin","email":"jacob.middleton@caplin.com"},"prettier":{"semi":true,"printWidth":80,"singleQuote":true,"trailingComma":"es5"},"repository":{"url":"git+https://github.com/caplin/cypress-image-snapshot.git","type":"git"},"_npmVersion":"9.5.1","description":"Cypress bindings for jest-image-snapshot.","directories":{},"_nodeVersion":"18.16.0","dependencies":{"glob":"^7.1.3","chalk":"^2.4.1","pkg-dir":"^3.0.0","fs-extra":"^7.0.1","term-img":"^4.0.0","@caplin/jest-image-snapshot":"4.5.1"},"eslintConfig":{"env":{"cypress/globals":true},"extends":["airbnb-base","prettier"],"plugins":["cypress"]},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","husky":"^1.2.1","eslint":"^5.10.0","rimraf":"^2.6.2","prettier":"1.15.3","babel-cli":"^6.26.0","pretty-quick":"^1.8.0","@changesets/cli":"^2.13.1","babel-preset-env":"^1.7.0","eslint-plugin-import":"^2.14.0","eslint-plugin-cypress":"^2.1.3","eslint-config-prettier":"^3.3.0","eslint-config-airbnb-base":"^13.1.0","@changesets/changelog-github":"^0.2.8","babel-plugin-transform-object-rest-spread":"^6.26.0"},"peerDependencies":{"cypress":">4.5.0"},"_npmOperationalInternal":{"tmp":"tmp/cypress-image-snapshot_4.3.1_1686324960030_0.4973257372284263","host":"s3://npm-registry-packages"}}},"time":{"created":"2022-09-07T16:06:54.005Z","modified":"2024-09-27T16:26:27.228Z","4.2.0":"2022-09-07T16:06:54.263Z","4.2.1":"2022-09-15T12:24:57.121Z","4.2.2":"2023-05-10T22:06:43.351Z","4.2.3":"2023-05-10T22:08:27.985Z","4.3.0":"2023-06-09T12:02:41.015Z","4.3.1":"2023-06-09T15:36:00.196Z"},"bugs":{"url":"https://github.com/caplin/cypress-image-snapshot/issues"},"author":{"name":"Jack Cross","email":"jack@palmer.net"},"license":"MIT","homepage":"https://github.com/caplin/cypress-image-snapshot#readme","repository":{"url":"git+https://github.com/caplin/cypress-image-snapshot.git","type":"git"},"description":"Cypress bindings for jest-image-snapshot.","maintainers":[{"email":"neal.dangerfield@caplin.com","name":"neal-at-caplin"},{"email":"jacob.middleton@caplin.com","name":"jtm-caplin"},{"email":"bladerunnerjs@caplin.com","name":"brjs"},{"email":"marc.labuhn@caplin.com","name":"mlabuhn"}],"readme":"# Cypress Image Snapshot\n\n\nCypress Image Snapshot binds [jest-image-snapshot](https://github.com/americanexpress/jest-image-snapshot)'s image diffing logic to [Cypress.io](https://cypress.io) commands. **The goal is to catch visual regressions during integration tests.**\n\n[![Discord](https://img.shields.io/discord/769256827007139912?label=%F0%9F%92%AC%20%20join%20us%20on%20discord&style=plastic)](https://discord.com/invite/RevdZTYMzr)\n\n<details>\n<summary>See it in action!</summary>\n\n### Cypress GUI\n\nWhen using `cypress open`, errors are displayed in the GUI.\n\n<img width=\"500px\" src=\"https://user-images.githubusercontent.com/4060187/41942389-5a6705ae-796d-11e8-8003-fadbf7ccf43d.gif\" alt=\"Cypress Image Snapshot in action\"/>\n\n### Composite Image Diff\n\nWhen an image diff fails, a composite image is constructed.\n\n<img width=\"500px\" src=\"https://user-images.githubusercontent.com/4060187/41942163-72c8c20a-796c-11e8-9149-c295341864d3.png\" alt=\"Cypress Image Snapshot diff\"/>\n\n### Test Reporter\n\nWhen using `cypress run` and `--reporter cypress-image-snapshot/reporter`, diffs are output to your terminal.\n\n<img width=\"500px\" src=\"https://user-images.githubusercontent.com/1153686/48518011-303d4580-e836-11e8-83ed-776acae78f9f.png\" alt=\"Cypress Image Snapshot reporter\"/>\n\n</details>\n\n## Installation\n\nInstall from npm\n\n```bash\nnpm install --save-dev cypress-image-snapshot\n```\n\nthen add the following in your project's `<rootDir>/cypress/plugins/index.js`:\n\n```js\nconst {\n  addMatchImageSnapshotPlugin,\n} = require('cypress-image-snapshot/plugin');\n\nmodule.exports = (on, config) => {\n  addMatchImageSnapshotPlugin(on, config);\n};\n```\n\nand in `<rootDir>/cypress/support/commands.js` add:\n\n```js\nimport { addMatchImageSnapshotCommand } from 'cypress-image-snapshot/command';\n\naddMatchImageSnapshotCommand();\n```\n\n## Syntax\n\n```js\n// addMatchImageSnapshotPlugin\naddMatchImageSnapshotPlugin(on, config);\n\n// addMatchImageSnapshotCommand\naddMatchImageSnapshotCommand();\naddMatchImageSnapshotCommand(commandName);\naddMatchImageSnapshotCommand(options);\naddMatchImageSnapshotCommand(commandName, options);\n\n// matchImageSnapshot\n.matchImageSnapshot();\n.matchImageSnapshot(name);\n.matchImageSnapshot(options);\n.matchImageSnapshot(name, options);\n\n// ---or---\n\ncy.matchImageSnapshot();\ncy.matchImageSnapshot(name);\ncy.matchImageSnapshot(options);\ncy.matchImageSnapshot(name, options);\n```\n\n## Usage\n\n### In your tests\n\n```js\ndescribe('Login', () => {\n  it('should be publicly accessible', () => {\n    cy.visit('/login');\n\n    // snapshot name will be the test title\n    cy.matchImageSnapshot();\n\n    // snapshot name will be the name passed in\n    cy.matchImageSnapshot('login');\n\n    // options object passed in\n    cy.matchImageSnapshot(options);\n\n    // match element snapshot\n    cy.get('#login').matchImageSnapshot();\n  });\n});\n```\n\n### Updating snapshots\n\nRun Cypress with `--env updateSnapshots=true` in order to update the base image files for all of your tests.\n\n### Preventing failures\n\nRun Cypress with `--env failOnSnapshotDiff=false` in order to prevent test failures when an image diff does not pass.\n\n### Reporter\n\nRun Cypress with `--reporter cypress-image-snapshot/reporter` in order to report snapshot diffs in your test results. This can be helpful to use with `--env failOnSnapshotDiff=false` in order to quickly view all failing snapshots and their diffs.\n\nIf you using [iTerm2](https://www.iterm2.com/version3.html), the reporter will output any image diffs right in your terminal 😎.\n\n#### Multiple reporters\n\nSimilar use case to: https://github.com/cypress-io/cypress-example-docker-circle#spec--xml-reports\n\nIf you want to report snapshot diffs as well as generate XML junit reports, you can use [mocha-multi-reporters](https://github.com/stanleyhlng/mocha-multi-reporters).\n\n```\nnpm install --save-dev mocha mocha-multi-reporters mocha-junit-reporter\n```\n\nYou'll then want to set up a `cypress-reporters.json` which may look a little like this:\n\n```json\n{\n  \"reporterEnabled\": \"spec, mocha-junit-reporter, cypress-image-snapshot/reporter\",\n  \"mochaJunitReporterReporterOptions\": {\n    \"mochaFile\": \"cypress/results/results-[hash].xml\"\n  }\n}\n```\n\nwhere `reporterEnabled` is a comma-separated list of reporters.\n\nYou can then run cypress like this:\n\n`cypress run --reporter mocha-multi-reporters --reporter-options configFile=cypress-reporters.json`\n\nor add the following to your `cypress.json`\n\n```\n{\n  ..., //other options\n  \"reporter\": \"mocha-multi-reporters\",\n  \"reporterOptions\": {\n    \"configFile\": \"cypress-reporters.json\"\n  }\n}\n```\n\n## Options\n\n- `customSnapshotsDir` : Path to the directory that snapshot images will be written to, defaults to `<rootDir>/cypress/snapshots`.\n- `customDiffDir`: Path to the directory that diff images will be written to, defaults to a sibling `__diff_output__` directory alongside each snapshot.\n\nAdditionally, any options for [`cy.screenshot()`](https://docs.cypress.io/api/commands/screenshot.html#Arguments) and [jest-image-snapshot](https://github.com/americanexpress/jest-image-snapshot#optional-configuration) can be passed in the `options` argument to `addMatchImageSnapshotCommand` and `cy.matchImageSnapshot()`. The local options in `cy.matchImageSnapshot()` will overwrite the default options set in `addMatchImageSnapshot`.\n\nFor example, the default options we use in `<rootDir>/cypress/support/commands.js` are:\n\n```js\naddMatchImageSnapshotCommand({\n  failureThreshold: 0.03, // threshold for entire image\n  failureThresholdType: 'percent', // percent of image or number of pixels\n  customDiffConfig: { threshold: 0.1 }, // threshold for each pixel\n  capture: 'viewport', // capture viewport in screenshot\n});\n```\n\n## How it works\n\nWe really enjoy the diffing workflow of jest-image-snapshot and wanted to have a similar workflow when using Cypress. Because of this, under the hood we use some of jest-image-snapshot's internals and simply bind them to Cypress's commands and plugins APIs.\n\nThe workflow of `cy.matchImageSnapshot()` when running Cypress is:\n\n1.  Take a screenshot with `cy.screenshot()` named according to the current test.\n2.  Check if a saved snapshot exists in `<rootDir>/cypress/snapshots` and if so diff against that snapshot.\n3.  If there is a resulting diff, save it to `<rootDir>/cypress/snapshots/__diff_output__`.\n\n## Cypress Version Requirements\n\nCypress's screenshot functionality has changed significantly across `3.x.x` versions. In order to avoid buggy behavior, please use the following version ranges:\n\n- `cypress-image-snapshot@>=1.0.0 <2.0.0` for `cypress@>=3.0.0 <3.0.2`\n- `cypress-image-snapshot@>2.0.0` for `cypress@>3.0.2`.\n","readmeFilename":"README.md"}