{"_id":"@buddy-works/visual-tests-cypress","_rev":"4-1c2ffeaa541638aac32cd2166d73de19","name":"@buddy-works/visual-tests-cypress","dist-tags":{"latest":"1.0.0"},"versions":{"0.1.0":{"name":"@buddy-works/visual-tests-cypress","version":"0.1.0","author":{"name":"Bartosz Wróbel"},"license":"MIT","_id":"@buddy-works/visual-tests-cypress@0.1.0","maintainers":[{"name":"mical","email":"michal83h@gmail.com"},{"name":"bylek","email":"bylek77@gmail.com"},{"name":"bartoszwrobel591","email":"bartoszwrobel591@gmail.com"},{"name":"sztwiorok","email":"raphael@buddy.works"}],"dist":{"shasum":"81ad13cc4d33fd85b7cc4ded1809d0e8cfaa4e0f","tarball":"https://registry.npmjs.org/@buddy-works/visual-tests-cypress/-/visual-tests-cypress-0.1.0.tgz","fileCount":5,"integrity":"sha512-eJEDAKpfecVRIYql1TU322TfEY99JBQ46BDK6F1AryZEo+R81Y9DbOf5xb9gFn7tG4DfmCqF3qVXD42z1wOk9w==","signatures":[{"sig":"MEUCIQDzxp1HyS6R11yCDM3twiB4ZR7Hx9pprpQBFFWFSrSBkAIgGDz4zzaFKg4OxGauFWkLQODkR2rXZmPCQObp7VeZMNg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6049},"main":"plugin/commands.js","_from":"file:buddy-works-visual-tests-cypress-0.1.0.tgz","engines":{"node":">=20.0.0"},"scripts":{"lint":"eslint \"**/*\""},"_npmUser":{"name":"bartoszwrobel591","email":"bartoszwrobel591@gmail.com"},"_resolved":"/tmp/0cc0449b1dd769d58124bdf34dd81fcf/buddy-works-visual-tests-cypress-0.1.0.tgz","_integrity":"sha512-eJEDAKpfecVRIYql1TU322TfEY99JBQ46BDK6F1AryZEo+R81Y9DbOf5xb9gFn7tG4DfmCqF3qVXD42z1wOk9w==","_npmVersion":"10.8.2","description":"Buddy Visual Tests Cypress Plugin","directories":{},"_nodeVersion":"20.19.4","_hasShrinkwrap":false,"devDependencies":{"eslint":"8.55.0","cypress":"14.0.3","prettier":"3.5.1","typescript":"5.7.3","eslint-plugin-cypress":"2.15.1","eslint-plugin-unicorn":"49.0.0 ","eslint-config-prettier":"9.1.0","eslint-plugin-prettier":"5.0.1","@typescript-eslint/parser":"6.13.2","@typescript-eslint/eslint-plugin":"6.13.2"},"_npmOperationalInternal":{"tmp":"tmp/visual-tests-cypress_0.1.0_1756731666490_0.9541468666031592","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@buddy-works/visual-tests-cypress","version":"0.2.0","keywords":["cypress","cypress-plugin","visual-testing","visual-regression","screenshot-testing","snapshot-testing","ui-testing","e2e-testing","buddy"],"author":{"name":"Bartosz Wróbel"},"license":"MIT","_id":"@buddy-works/visual-tests-cypress@0.2.0","maintainers":[{"name":"mical","email":"michal83h@gmail.com"},{"name":"bylek","email":"bylek77@gmail.com"},{"name":"bartoszwrobel591","email":"bartoszwrobel591@gmail.com"},{"name":"sztwiorok","email":"raphael@buddy.works"}],"dist":{"shasum":"fbc05fb312696aa97e13879c19a4852b153254d7","tarball":"https://registry.npmjs.org/@buddy-works/visual-tests-cypress/-/visual-tests-cypress-0.2.0.tgz","fileCount":5,"integrity":"sha512-1+r3HemUoW1eS3WlGOpED5tmsZPX3m3zas/UL92x0g9aP2rH860JtyMy8lh9ym10ltJgmEhOlmbMEIxolCP8Dg==","signatures":[{"sig":"MEYCIQDmNV88iF3mFV3t6eQNo55w9bf51xvNQqEoTqRzmYhMMgIhAI7nHKbrrc/n6PggMTnfOA47YCkKEaoOybI0N5CGhJbC","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6270},"main":"plugin/commands.js","_from":"file:buddy-works-visual-tests-cypress-0.2.0.tgz","types":"plugin/types/index.d.ts","engines":{"node":">=20.0.0"},"scripts":{"lint":"eslint \"**/*\""},"_npmUser":{"name":"bylek","email":"bylek77@gmail.com"},"_resolved":"/tmp/4306b2aa104d1119148db4b29bac7f6e/buddy-works-visual-tests-cypress-0.2.0.tgz","_integrity":"sha512-1+r3HemUoW1eS3WlGOpED5tmsZPX3m3zas/UL92x0g9aP2rH860JtyMy8lh9ym10ltJgmEhOlmbMEIxolCP8Dg==","_npmVersion":"10.8.2","description":"Buddy Visual Tests Cypress Plugin","directories":{},"_nodeVersion":"20.20.2","_hasShrinkwrap":false,"devDependencies":{"eslint":"8.55.0","cypress":"14.0.3","prettier":"3.5.1","typescript":"5.7.3","eslint-plugin-cypress":"2.15.1","eslint-plugin-unicorn":"49.0.0 ","eslint-config-prettier":"9.1.0","eslint-plugin-prettier":"5.0.1","@typescript-eslint/parser":"6.13.2","@typescript-eslint/eslint-plugin":"6.13.2"},"_npmOperationalInternal":{"tmp":"tmp/visual-tests-cypress_0.2.0_1784720349991_0.7623351179058546","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@buddy-works/visual-tests-cypress","version":"1.0.0","keywords":["cypress","cypress-plugin","regression","visual-regression","visual testing","visual-testing","screenshot","screenshot-testing","image-comparison","image-diff","ui-testing","e2e","e2e-testing","testing","test-automation","ci","buddy","buddy-works"],"author":{"name":"Bartosz Wróbel"},"license":"MIT","_id":"@buddy-works/visual-tests-cypress@1.0.0","maintainers":[{"name":"mical","email":"michal83h@gmail.com"},{"name":"bylek","email":"bylek77@gmail.com"},{"name":"bartoszwrobel591","email":"bartoszwrobel591@gmail.com"},{"name":"sztwiorok","email":"raphael@buddy.works"}],"dist":{"shasum":"41269a97556ca98648f1a8d5cd2b9fcd95f00702","tarball":"https://registry.npmjs.org/@buddy-works/visual-tests-cypress/-/visual-tests-cypress-1.0.0.tgz","fileCount":11,"integrity":"sha512-TWm0bpS3hV5Nq5mZIFSexc6PVvbT1MpKEwaHRYn3ALVM56jtxcf4Jtl8gCHbRmrm9ApHzoTWUsPrLv/Ha3CG6Q==","signatures":[{"sig":"MEYCIQDIz7iGbd5qSG4ntrrTbxGBFlkUAfVerGnchc7pmEsz2AIhANVN7Qxu+Dbxf6sP56ryCaIYyC+377UBKkYeIKsnroso","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20513},"main":"./dist/index.cjs","type":"module","types":"./dist/types/index.d.cts","engines":{"node":">=20"},"exports":{".":{"import":{"types":"./dist/types/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/types/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"fd5ec8efd896a62ef0c1987ec8bc21c1692efadf","scripts":{"lint":"oxlint","build":"node build.js","format":"oxfmt","typecheck":"tsc --noEmit"},"_npmUser":{"name":"bylek","email":"bylek77@gmail.com","approver":{"name":"bylek","email":"bylek77@gmail.com"}},"_npmVersion":"11.19.0","description":"Buddy Visual Tests Cypress Plugin","directories":{},"_nodeVersion":"26.7.0","_hasShrinkwrap":false,"devDependencies":{"oxfmt":"0.64.0","oxlint":"1.79.0","cypress":"15.21.0","esbuild":"0.28.2","typescript":"7.0.2"},"peerDependencies":{"cypress":">=14.0.0"},"_npmOperationalInternal":{"tmp":"tmp/visual-tests-cypress_1.0.0_1787663701707_0.3182761697610077","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2025-09-01T13:01:06.361Z","modified":"2026-09-02T06:47:19.948Z","0.1.0":"2025-09-01T13:01:06.671Z","0.2.0":"2026-07-22T11:39:10.117Z","1.0.0":"2026-08-25T13:15:01.802Z"},"author":{"name":"Bartosz Wróbel"},"license":"MIT","keywords":["cypress","cypress-plugin","regression","visual-regression","visual testing","visual-testing","screenshot","screenshot-testing","image-comparison","image-diff","ui-testing","e2e","e2e-testing","testing","test-automation","ci","buddy","buddy-works"],"description":"Buddy Visual Tests Cypress Plugin","maintainers":[{"email":"michal83h@gmail.com","name":"mical"},{"email":"bylek77@gmail.com","name":"bylek"},{"email":"bartoszwrobel591@gmail.com","name":"bartoszwrobel591"},{"email":"mganczarczyk@proton.me","name":"mganczarczyk"},{"email":"raphael@buddy.works","name":"sztwiorok"}],"readme":"# Visual Test Cypress Plugin\n\nA Cypress plugin for performing visual testing using Buddy Works Visual Testing. This plugin allows automatic capturing of website snapshots across different screen resolutions and comparing them with reference versions to detect visual regressions.\n\n## Requirements\n\n- **Node.js** `>=20`\n- **Cypress** `>=14.0.0`\n- **[bdy CLI](https://www.npmjs.com/package/bdy)** — tests must be run through the CLI within a visual testing session, e.g. `bdy tests visual session create \"cypress run\"`\n\n## Installation\n\n```bash\nnpm install -D @buddy-works/visual-tests-cypress\n```\n\n## Usage\n\nAdd the plugin to your Cypress support file so the custom command is registered, then call `cy.takeSnap` anywhere in your tests after navigating to a page.\n\n```javascript\n// cypress/support/e2e.js\nimport \"@buddy-works/visual-tests-cypress\";\n```\n\n```javascript\ndescribe(\"visuals\", () => {\n  it(\"homepage visual test\", () => {\n    cy.visit(\"https://example.com\");\n\n    cy.takeSnap(\"homepage\", {\n      devices: [{ viewport: { width: 1366, height: 768 } }],\n      colorScheme: \"DARK\",\n      cloneCookies: true,\n    });\n  });\n});\n```\n\n## Examples\n\nExample usage of the plugin can be found in the `examples/` directory:\n\n```bash\n# Install dependencies\npnpm i\n# Build plugin\npnpm run build\n# Go to examples folder\ncd examples\n# Install examples dependencies\npnpm i\n# Add enviroment variables with token\nexport BUDDY_VT_TOKEN=****\n# Run an example\npnpm run test\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}