{"_id":"@buddy-works/visual-tests-puppeteer","_rev":"3-868fc01ca0626a16f210680cb1864655","name":"@buddy-works/visual-tests-puppeteer","dist-tags":{"latest":"1.0.0"},"versions":{"0.1.0":{"name":"@buddy-works/visual-tests-puppeteer","version":"0.1.0","keywords":["puppeteer","visual testing","regression"],"author":{"name":"Bartosz Wróbel"},"license":"MIT","_id":"@buddy-works/visual-tests-puppeteer@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":"3655b7a668c8541e478895a95970d53e5ff135c6","tarball":"https://registry.npmjs.org/@buddy-works/visual-tests-puppeteer/-/visual-tests-puppeteer-0.1.0.tgz","fileCount":8,"integrity":"sha512-zkV5lWfms5o2dxZbV69JFZMZLENAkg94TZ8M/rLB6nmCWQE4Ls6kfv2XDHTfVW0fGt79SuySXaNdFAifCTsMXg==","signatures":[{"sig":"MEUCIQCZ9nCEz+SOSt5MrqkFAzYRsAlGHq/fYessTr5cpw2O1gIgGksN+L2EhoHyfoSojmn/FggHtEBqFPvT9RvbQ7QrAbI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15332},"main":"./dist/index.js","type":"module","_from":"file:buddy-works-visual-tests-puppeteer-0.1.0.tgz","engines":{"node":">=20"},"exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"scripts":{"lint":"eslint \"**/*\"","build":"node build.js"},"_npmUser":{"name":"bartoszwrobel591","email":"bartoszwrobel591@gmail.com"},"_resolved":"/tmp/8cf666321a3d5bc4aa9a85c7f4520e2d/buddy-works-visual-tests-puppeteer-0.1.0.tgz","_integrity":"sha512-zkV5lWfms5o2dxZbV69JFZMZLENAkg94TZ8M/rLB6nmCWQE4Ls6kfv2XDHTfVW0fGt79SuySXaNdFAifCTsMXg==","_npmVersion":"10.8.2","description":"Buddy Visual Test Puppeteer Plugin","directories":{},"_nodeVersion":"20.19.4","_hasShrinkwrap":false,"devDependencies":{"eslint":"9.22.0","esbuild":"0.25.1","prettier":"3.5.3","puppeteer":"24.4.0","@eslint/js":"9.22.0","typescript":"5.8.2","typescript-eslint":"8.26.1","eslint-plugin-unicorn":"57.0.0","esbuild-node-externals":"1.18.0","eslint-config-prettier":"10.1.1","eslint-plugin-prettier":"5.2.3","@typescript-eslint/parser":"8.26.1","@typescript-eslint/eslint-plugin":"8.26.1"},"_npmOperationalInternal":{"tmp":"tmp/visual-tests-puppeteer_0.1.0_1756732165851_0.22455172993718708","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@buddy-works/visual-tests-puppeteer","version":"1.0.0","keywords":["buddy","buddy-works","ci","e2e","e2e-testing","image-comparison","image-diff","puppeteer","puppeteer-plugin","regression","screenshot","screenshot-testing","test-automation","testing","ui-testing","visual testing","visual-regression","visual-testing"],"author":{"name":"Bartosz Wróbel"},"license":"MIT","_id":"@buddy-works/visual-tests-puppeteer@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":"70bc886291c69effc3b74a28047c404907856941","tarball":"https://registry.npmjs.org/@buddy-works/visual-tests-puppeteer/-/visual-tests-puppeteer-1.0.0.tgz","fileCount":11,"integrity":"sha512-jxUlNYRQJRfDiKh83k/nMyz0yyqHLvzeOX6Uy61QpiHHiCxVFeoS7jRgBGLTkGbPwe2sUa1u9mXbuST7Y09eKw==","signatures":[{"sig":"MEYCIQCvLXnjhnK3e58xYuZTdgFsn1/QF4o7e5C2Yq71a3XhJgIhAITOnjq9kNVMhlX5gJuTY13JPJT60LbioTQQMmIfCghG","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25552},"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":"e0fc8f5faab12dce9f51b29a4f1fc721e9d7ab48","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 Test Puppeteer Plugin","directories":{},"_nodeVersion":"26.7.0","_hasShrinkwrap":false,"devDependencies":{"oxfmt":"0.64.0","oxlint":"1.79.0","esbuild":"0.28.2","puppeteer":"25.8.0","typescript":"7.0.2","@types/node":"^20.19.43","esbuild-node-externals":"2.0.0"},"peerDependencies":{"puppeteer":">=23.10.0"},"_npmOperationalInternal":{"tmp":"tmp/visual-tests-puppeteer_1.0.0_1787666187390_0.9909568015474353","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2025-09-01T13:09:25.781Z","modified":"2026-09-02T06:47:21.074Z","0.1.0":"2025-09-01T13:09:26.014Z","1.0.0":"2026-08-25T13:56:27.487Z"},"author":{"name":"Bartosz Wróbel"},"license":"MIT","keywords":["buddy","buddy-works","ci","e2e","e2e-testing","image-comparison","image-diff","puppeteer","puppeteer-plugin","regression","screenshot","screenshot-testing","test-automation","testing","ui-testing","visual testing","visual-regression","visual-testing"],"description":"Buddy Visual Test Puppeteer 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 Puppeteer Plugin\n\nA Puppeteer 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- **Puppeteer** `>=23.10.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 \"node index.js\"`\n\n## Installation\n\n```bash\nnpm install @buddy-works/visual-tests-puppeteer\n```\n\n## Usage\n\n### ESM (`import`)\n\n```javascript\nimport puppeteer from \"puppeteer\";\nimport VisualTestsPlugin from \"@buddy-works/visual-tests-puppeteer\";\n\nconst browser = await puppeteer.launch();\nconst page = await browser.newPage();\nconst visualTests = new VisualTestsPlugin();\n\nawait page.goto(\"https://example.com\");\n\nawait visualTests.takeSnap(page, \"homepage\", {\n  devices: [{ viewport: { width: 1366, height: 768 } }],\n  colorScheme: \"DARK\",\n  cloneCookies: true,\n});\n\nawait browser.close();\n```\n\n### CommonJS (`require`)\n\n```javascript\nconst puppeteer = require(\"puppeteer\");\nconst { VisualTestsPlugin } = require(\"@buddy-works/visual-tests-puppeteer\");\n\nasync function run() {\n  const browser = await puppeteer.launch();\n  const page = await browser.newPage();\n  const visualTests = new VisualTestsPlugin();\n\n  await page.goto(\"https://example.com\");\n\n  await visualTests.takeSnap(page, \"homepage\", {\n    devices: [{ viewport: { width: 1366, height: 768 } }],\n    colorScheme: \"DARK\",\n    cloneCookies: true,\n  });\n\n  await browser.close();\n}\n\nrun();\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"}