{"_id":"@bitovi/snapshot-test","_rev":"27-38e581cd129770505e08e95cd54d9a51","name":"@bitovi/snapshot-test","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"@bitovi/snapshot-test","version":"0.0.1","keywords":["donejs-plugin","Testing"],"author":{"url":"http://bitovi.com","name":"Bitovi","email":"contact@bitovi.com"},"license":"MIT","_id":"@bitovi/snapshot-test@0.0.1","maintainers":[{"name":"matthewp","email":"matthew@matthewphillips.info"},{"name":"imjoshdean","email":"me@imjoshdean.com"},{"name":"justinbmeyer","email":"justin@bitovi.com"}],"homepage":"https://github.com/bitovi/snapshot-test","bugs":{"url":"https://github.com/bitovi/bitovi-snapshot-test/issues"},"dist":{"shasum":"935fa0d22cca66d3fbb7f744df6166b8a784d580","tarball":"https://registry.npmjs.org/@bitovi/snapshot-test/-/snapshot-test-0.0.1.tgz","fileCount":14,"integrity":"sha512-nMl7+6cY0IwpfemqLkeBNWEZooG0PIFq7czlWBPLjoyLI/aFH6BjoizDpJ2EEw7lxGoLkgw83r8EViV8UkXT1w==","signatures":[{"sig":"MEYCIQCafh52pbvngw9soHJgViByyD3KKBXCoFu/u7VeVeHhsAIhAO5me4wNm/Z3uwJtMXIj1AatxN4Irkkn0iKv5JlfF6LQ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21117,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJco5v0CRA9TVsSAnZWagAAsxYP/13ch6Sr+2wlDJgbaKYl\nsOzPuoFfo5FyXz/o+qAtH5WYZutwiWRu730A8AGCdLnREyW2S2O1jv4j9MO6\noO6mY6XOeU/0D2VHYAWhzgZnKHpLW2jmW4Iu00P+pLlzy1zK/1TQhksRhCqv\nHwihBVTFjLMqUnGGhy8Jq8NRU/nQWQysO2UO7T2QIufdFbdfBrGAKT86/TXU\nHnb71+JEOjuXV2vdKN2eSOozu2yHaECw168Cs/y6Mq4bTIm0kgJ2Ptsw2XNf\nkjwS7qU0CRvVgC8nIL7u30bV5vxAOMfqx1CKEceWJyeNvPliewtfOWaLHhBo\nLSInY49zEfIHt3ueZdKJrq7Vtqsd9Ct0HwOwznFmWIUeOs5Yy21Pqz+djAX4\nT5gbfU/YF9Q3qSIsnnn36dMYSL8jMoTWypwc/o+IOdHJ/qp18gpMY7WppbN7\nFXi/j10Gv0OMVlsg6lohD5xNxj8JpO5190SKpjIm3ZxwTne15SNNc4Ju4l/z\nUnPRKxyTxLNgq0BBj2xbc1kLWBCB/PxbwcX0okBiTZEEoFeCvU84//pvOSDz\n7PSysmc0VulNMWqc9GY9HZsfyxVoIgWPRx2rrVzN2ZPHLm3M80Fv996YNC6X\naNVblsFwAl0fmdj02SfQLcj+LW5VmfSaaUaqCe/ah0D8nV5JCMnTU2+Uef83\ntk8B\r\n=hmj/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index","steal":{"npmIgnore":["testee","generator-donejs","donejs-cli","steal-tools"],"configDependencies":["live-reload"]},"gitHead":"32e948e2a35840681bfd8285220c40023ac52c5d","scripts":{"test":"npm run jshint && npm run testee","build":"node build.js","jshint":"jshint ./*.js --config","testee":"testee test.html --browsers firefox","develop":"done-serve --static --develop --port 8080","version":"git commit -am \"Update version number\" && git checkout -b release && git add -f dist/","preversion":"npm test && npm run build","postpublish":"git push --tags && git checkout master && git branch -D release && git push","release:major":"npm version major && npm publish","release:minor":"npm version minor && npm publish","release:patch":"npm version patch && npm publish"},"_npmUser":{"name":"justinbmeyer","email":"justin@bitovi.com"},"repository":{"url":"git://github.com/bitovi/bitovi-snapshot-test.git","type":"git"},"_npmVersion":"6.4.1","description":"Visual snapshot testing for everyone","directories":{},"_nodeVersion":"10.14.2","dependencies":{"pixelmatch":"^4.0.2","html2canvas":"^1.0.0-alpha.12","detect-browser":"^4.2.0"},"_hasShrinkwrap":false,"devDependencies":{"steal":"^2.1.6","jshint":"^2.9.1","testee":"^0.8.1","steal-qunit":"^1.0.1","steal-tools":"^2.0.9"},"_npmOperationalInternal":{"tmp":"tmp/snapshot-test_0.0.1_1554226163280_0.6546943228999405","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"@bitovi/snapshot-test","version":"0.0.2","keywords":["donejs-plugin","Testing"],"author":{"url":"http://bitovi.com","name":"Bitovi","email":"contact@bitovi.com"},"license":"MIT","_id":"@bitovi/snapshot-test@0.0.2","maintainers":[{"name":"imjoshdean","email":"me@imjoshdean.com"},{"name":"justinbmeyer","email":"justin@bitovi.com"},{"name":"matthewp","email":"matthew@matthewphillips.info"}],"homepage":"https://github.com/bitovi/snapshot-test","bugs":{"url":"https://github.com/bitovi/bitovi-snapshot-test/issues"},"dist":{"shasum":"f9792bb463cd326e8fed043f9466464fa6d03ab5","tarball":"https://registry.npmjs.org/@bitovi/snapshot-test/-/snapshot-test-0.0.2.tgz","fileCount":15,"integrity":"sha512-AWPIV5L3WMS3rejBgMSPHhWBaMxGnUVGLtKCfDQVnB3cg9PpoDFw5ogWPtBV/XeLvVKdcgNlMYuD9GFrBOJ7rQ==","signatures":[{"sig":"MEUCIQDWHl18br6ME43a0OeCJrAlYC5pNbgg/LQ/d1Wbs7lhFwIgTWprkFrIm46kD+AEsB1OZpPvw4HbITUtlJT4VNcsiHI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":375280,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJco5wNCRA9TVsSAnZWagAAQ0kQAIqxgS8vGPFpLQ9uW7HH\nm+PGXs2OenbwKI6pTVJ5tLB9c+iqelUBOQpXlhSHENPNdCiN8YUUvvkpU7v8\nYkThkAzQrxqKhk7wPYmAZ4EhEeb1LIhdRpjrbGdeOAUFKuYJrXnL+/zhBSfy\nXwgOC8eqjoMQmiPwtxerMQV5AgksrJjD0JiSSvRE1i2p+gYPewvq9AzpuDmd\nLpvhYbBTMeivgHRevE8uiC8KTg2PQyMZlTdqp/cyXEPrrdsrJ1nxMjwranGU\njhLY/wSGJUVrWeM/5XYYwk0FLnsHH5+REybysR8wKMJ38ypRnbvlzVVstFRG\nA8D2jWFn5VPVeCp7Ox2OAVa1iAhH+IqEitlyvCdFNELXQLWTqHLNvFyuq6fi\nY1mEh0wE8x/IJwDS75anSCXpUQ8oNhI69TD6zFP9rqd8wOJKjvSLJFIUnstO\nTyz/mWYP7knLIsEDf4wizxaqk6dx25IQXnIb8HQIkrSXBYQ4/aRKIhH/7uYY\nhjcVfv+HthieierPvjZtgLy4Er8cPU1sCcSJ1gKh5kkyUCcznq5HS81pLY2G\nDJri/zSGDXaSJ41L8QgJra7Ln0guIg1HvzLo8kmM39I2m3a5m1IiGOREOAc9\nKceJT8UE0tUFzjaoQPm4I7SteMNY8MSh5PsdEXfkqcooehvLUecAsxvpr30F\n+DIX\r\n=Vdrf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index","steal":{"npmIgnore":["testee","generator-donejs","donejs-cli","steal-tools"],"configDependencies":["live-reload"]},"gitHead":"3be65b8c4785bf6f3efbf2e89f1848b2ffe711c5","scripts":{"test":"npm run jshint && npm run testee","build":"node build.js","jshint":"jshint ./*.js --config","testee":"testee test.html --browsers firefox","develop":"done-serve --static --develop --port 8080","version":"git commit -am \"Update version number\" && git checkout -b release && git add -f dist/","preversion":"npm test && npm run build","postpublish":"git push --tags && git checkout master && git branch -D release && git push","release:major":"npm version major && npm publish","release:minor":"npm version minor && npm publish","release:patch":"npm version patch && npm publish"},"_npmUser":{"name":"justinbmeyer","email":"justin@bitovi.com"},"repository":{"url":"git://github.com/bitovi/bitovi-snapshot-test.git","type":"git"},"_npmVersion":"6.4.1","description":"Visual snapshot testing for everyone","directories":{},"_nodeVersion":"10.14.2","dependencies":{"pixelmatch":"^4.0.2","html2canvas":"^1.0.0-alpha.12","detect-browser":"^4.2.0"},"_hasShrinkwrap":false,"devDependencies":{"steal":"^2.1.6","jshint":"^2.9.1","testee":"^0.8.1","steal-qunit":"^1.0.1","steal-tools":"^2.0.9"},"_npmOperationalInternal":{"tmp":"tmp/snapshot-test_0.0.2_1554226189256_0.5611360534067367","host":"s3://npm-registry-packages"}},"0.0.3":{"name":"@bitovi/snapshot-test","version":"0.0.3","keywords":["donejs-plugin","Testing"],"author":{"url":"http://bitovi.com","name":"Bitovi","email":"contact@bitovi.com"},"license":"MIT","_id":"@bitovi/snapshot-test@0.0.3","maintainers":[{"name":"imjoshdean","email":"me@imjoshdean.com"},{"name":"justinbmeyer","email":"justin@bitovi.com"},{"name":"matthewp","email":"matthew@matthewphillips.info"}],"homepage":"https://github.com/bitovi/snapshot-test","bugs":{"url":"https://github.com/bitovi/bitovi-snapshot-test/issues"},"dist":{"shasum":"e1070ee73bc60387b1863c611e57a06323fa5da0","tarball":"https://registry.npmjs.org/@bitovi/snapshot-test/-/snapshot-test-0.0.3.tgz","fileCount":15,"integrity":"sha512-8ro+XxkJykDAApMRAG39SeoOWjqevTZ3m7SJpoOJ8Wlzc4l+NvbYSjmhQL3Loar/2/VTQwdN839T6f6msRYd/Q==","signatures":[{"sig":"MEQCIE/LTqw3nVkgZdN1penPOJctf0cXcIxM4Mm21s5QfIpdAiBuCIZ/sE4GE4qaaVCKtYYfHoaGTddnonTCMTZlWWMGAA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":376881,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcpOCeCRA9TVsSAnZWagAAU6QQAJ02lIivYPS4dpsNahp4\nv8Fwg9pbYQSlv3p7Fm2m8c1bqxCKhxUXGHZjFRuowbEQ8GODk41LGNspMmA+\n9otj21ygnvGlKgFKOuwO2M2dbdVBFMFY827Y2oNUkc9bANB3LxD1BExm/y/G\nRTscw7OgoRpYkydnyqFr8K/j8YFSio0pO3lTJG2X5+grMpGO1Qdlprc7o7d1\nA0oX0cPX/hcYYZq5ySTbKT8A+3C2PAEpumYg+gnBjgPAvA8I4vi+OCfIt9Zn\ncMc/5tOlZ3mHCm1MFjBk5YHTLmSt7JbteQs5mNprnoJBdlbglb7wjLLdXja2\nJ6HoWbXIsqMHjdSL/MAngA3rwg+mAZd9DZ+zwHeMgFWL5HjABqc1KQiebmcD\nyFSi3q6ZKnuHRqIUsC7jARP5nuw+okiIE47v7xRoYoGsZLXC0kN7VsebiQCJ\nkaTZhF/PYwj7hu/CNBbEWRd9wnm4dfcVrB0ucoM+GcMkIxcBsRQeJs3CaT3b\nxoa+pYWBvFRV+WnCrZ81tzht8B/xlVKMKl6P9UDg76Jt1bG3Fo80JaDwnPg2\nTg1gZLUEr99FjdrBoLxkkaAM398/ib/BrSUwucHp7VmmZWElJoKEluNcbAt2\nP8WyfKKUDtMza++yPFgI2AgHRiYqzWgxtTSkho+6No5h0Q9x9iJkSJz3EmcP\nkpJ3\r\n=M/pe\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index","steal":{"npmIgnore":["testee","generator-donejs","donejs-cli","steal-tools"],"configDependencies":["live-reload"]},"gitHead":"6f3603bfcb3a2fde3b4bf1446bfc2aa55f072d86","scripts":{"test":"npm run jshint && npm run testee","build":"node build.js","jshint":"jshint ./*.js --config","testee":"testee test.html --browsers firefox","develop":"done-serve --static --develop --port 8080","version":"git commit -am \"Update version number\" && git checkout -b release && git add -f dist/","preversion":"npm test && npm run build","postpublish":"git push --tags && git checkout master && git branch -D release && git push","release:major":"npm version major && npm publish","release:minor":"npm version minor && npm publish","release:patch":"npm version patch && npm publish"},"_npmUser":{"name":"justinbmeyer","email":"justin@bitovi.com"},"repository":{"url":"git://github.com/bitovi/bitovi-snapshot-test.git","type":"git"},"_npmVersion":"6.4.1","description":"Visual snapshot testing for everyone","directories":{},"_nodeVersion":"10.14.2","dependencies":{"pixelmatch":"^4.0.2","html2canvas":"^1.0.0-alpha.12","detect-browser":"^4.2.0"},"_hasShrinkwrap":false,"devDependencies":{"steal":"^2.1.6","jshint":"^2.9.1","testee":"^0.8.1","steal-qunit":"^1.0.1","steal-tools":"^2.0.9"},"_npmOperationalInternal":{"tmp":"tmp/snapshot-test_0.0.3_1554309277902_0.16886209563320298","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-04-02T17:29:23.159Z","modified":"2026-05-21T14:19:20.478Z","0.0.1":"2019-04-02T17:29:23.508Z","0.0.2":"2019-04-02T17:29:49.445Z","0.0.3":"2019-04-03T16:34:38.134Z"},"bugs":{"url":"https://github.com/bitovi/bitovi-snapshot-test/issues"},"author":{"url":"http://bitovi.com","name":"Bitovi","email":"contact@bitovi.com"},"license":"MIT","homepage":"https://github.com/bitovi/snapshot-test","keywords":["donejs-plugin","Testing"],"repository":{"url":"git://github.com/bitovi/bitovi-snapshot-test.git","type":"git"},"description":"Visual snapshot testing for everyone","maintainers":[{"email":"justin@bitovi.com","name":"justinbmeyer"},{"email":"cherif.bouchelaghem@gmail.com","name":"cherif_b"},{"email":"alyshouman@gmail.com","name":"alishouman"},{"email":"os@bitovi.com","name":"bitovi-os"},{"email":"kylebnazario@gmail.com","name":"kyle-n"},{"email":"mhaynie@bitovi.com","name":"mhaynie_bitovi"},{"email":"brad@bitovi.com","name":"bmomberger-bitovi"},{"email":"fabioemoutinho@gmail.com","name":"fabioemoutinho"},{"email":"rich@limnous.com","name":"rlmcneary2"},{"email":"jennifer.wadella@gmail.com","name":"tehfedaykin"},{"email":"kphillips86@gmail.com","name":"phillipskevin"},{"email":"mick.mc.13@gmail.com","name":"mickmcgrath13"},{"email":"core@donejs.com","name":"bitovi-core-os"},{"email":"jane@bitovi.com","name":"janebitovi"},{"email":"DanD.Tran89@gmail.com","name":"dandamantran89"},{"email":"sandover@gmail.com","name":"sandover"}],"readme":"# @bitovi/snapshot-test\n\nTake an image of an iframe and compare it to a\nsaved image.\n\n```js\nimport {compareToSnapshot} from \"@bitovi/snapshot-test\";\n\ncompareToSnapshot({\n\t// A URL you want to test against.\n\t// Must be same domain.\n\turl: \"./style-guide.html\",\n\n\t// The width and height of an iframe used\n\t// to load the URL. The <body> will be rendered.\n\t// So if your <body> is greater than `height`\n\t// an image of that size will be created.\n\twidth: 1000, // defaults to 1000\n\theight: 400, // defaults to 400\n\n\t// The path to where to keep your saved images.\n\tsnapshotDir: \"./\",\n\n\t// An identifier used to figure out the saved\n\t// image's path.\n\t//\n\t// For example, if the tests were running in google `chrome`\n\t// on a `high definition` display, an image would be looked\n\t// in the following places:\n\t//\n\t// 1. style-guide-1000-hd-chrome.png\n\t// 2. style-guide-1000-hd.png\n\t// 3. style-guide.png\n\tsnapshotPrefix: \"style-guide\",\n\n\t// This function is called after the iframe has loaded.\n\t// You can make adjustments to the document before the snapshot\n\t// is taken. This function should return a promise when\n\t// the snapshot is ready to be taken.\n\tprepareDocument(iframe) { return Promise },\n\n\t// Options passed to pixelmatch that does the diff.\n\tpixelMatchOptions: { ... }\n\n})\n// `compareToSnapshot` returns a promise.\n.then(function(){\n\t// If the promise resolves, the images are equal.\n\t// You should pass your test!\n}, function(err) {\n\t// If the promise rejects, the images are not equal!\n\t// You should fail your test.\n\n\t// An err object is returned with useful information.\n\n\t// A DOM element you can insert\n\t// to see the difference and save a new snapshot.\n\terr.html\n});\n```\n","readmeFilename":"README.md"}