{"_id":"jest-chrome","_rev":"8-60fc81a81e673055f9498c61dd4f36f9","name":"jest-chrome","description":"Test Chrome extensions with Jest. A complete mock of the Chrome API.","dist-tags":{"latest":"0.8.0"},"versions":{"0.0.1":{"name":"jest-chrome","version":"0.0.1","description":"Run Jest tests in Google Chrome. Coming Soon.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Andrew Powell","email":"andrew@shellscape.org"},"license":"MIT","_id":"jest-chrome@0.0.1","_npmVersion":"5.6.0","_nodeVersion":"9.2.0","_npmUser":{"name":"shellscape","email":"andrew@shellscape.org"},"dist":{"integrity":"sha512-XRgrSi2qPxHz6MZ5NxZPNVLOS5IyIEOo4rBEEYXmj3ik/2lCtXUEeo4ZTouJ+SwgUmEr4Yi18NtbOtGn41TTsw==","shasum":"e45d7d6780b5680534fcfc11e5ce68da3d9383fa","tarball":"https://registry.npmjs.org/jest-chrome/-/jest-chrome-0.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCwwy0pmIWPBH5+nC7+FxraACaD4R21V1/VO6LCDdn/pwIgdBT+ysjaa1NXOzte25aubniN+zVSAWWJFkmHgjEduZc="}]},"maintainers":[{"name":"shellscape","email":"andrew@shellscape.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jest-chrome-0.0.1.tgz_1516024400042_0.8526854165829718"},"directories":{}},"0.6.0":{"name":"jest-chrome","version":"0.6.0","description":"Test Chrome extensions with Jest. A complete mock of the Chrome API.","keywords":["api","chrome","chromium","extension","jest","mock","test","typescript"],"repository":{"type":"git","url":"git+https://github.com/extend-chrome/jest-chrome.git"},"bugs":{"url":"https://github.com/extend-chrome/jest-chrome/issues"},"license":"MIT","author":{"name":"Jack Steam","email":"jacksteamdev@gmail.com"},"main":"lib/index.cjs.js","module":"lib/index.esm.js","types":"types/index.d.ts","scripts":{"build":"run-s build:clean build:pro build:types build:copy","build:clean":"rm -rf lib types","build:copy":"copyfiles -f src/jest-chrome.d.ts types","build:dev":"rollup -c --environment NODE_ENV:development","build:pro":"rollup -c --environment NODE_ENV:production","build:types":"tsc -p tsconfig.d.json","build:watch":"npm run build:dev -- -w","postpublish":"rm -rf node_modules package-lock.json && pnpm i","start":"run-p build:watch","pretest":"npm run build","test":"jest"},"dependencies":{"@types/chrome":"^0.0.114"},"devDependencies":{"@rollup/plugin-commonjs":"^12.0.0","@rollup/plugin-json":"^4.0.3","@rollup/plugin-node-resolve":"^8.0.0","@rollup/plugin-typescript":"^4.1.2","@sucrase/jest-plugin":"^2.0.0","@types/filesystem":"^0.0.29","@types/fs-extra":"^9.0.1","@types/jest":"^25.2.3","@types/jest-in-case":"^1.0.2","@types/lodash":"^4.14.153","@types/node":"^14.0.5","@types/power-assert":"^1.5.3","@types/puppeteer":"^3.0.0","@typescript-eslint/eslint-plugin":"^3.0.2","@typescript-eslint/parser":"^3.0.2","chrome-promise":"^3.0.5","copyfiles":"^2.3.0","eslint":"^7.1.0","eslint-plugin-jest":"^23.13.2","fs-extra":"^9.0.0","jest":"^26.0.1","lodash":"^4.17.15","npm-run-all":"^4.1.5","prettier":"^2.0.5","rollup":"^2.11.2","ts-jest":"^26.0.0","tslib":"^2.0.0","typescript":"^3.9.3"},"peerDependencies":{"jest":"^24.9.0"},"gitHead":"4488a2a65fada6d58091ddbc1067b900df9800c0","homepage":"https://github.com/extend-chrome/jest-chrome#readme","_id":"jest-chrome@0.6.0","_nodeVersion":"13.14.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-qrvxU7MUJHH9ApN5iFejh0+DtsdRnkQefxaDZMfHuo39M/+y3mtp1qE2fjn9IYpO2OqkXuEYUjZwqAWos8QVwQ==","shasum":"26e5904dc1381275f37532e7d668a5e3ee2dec63","tarball":"https://registry.npmjs.org/jest-chrome/-/jest-chrome-0.6.0.tgz","fileCount":13,"unpackedSize":694140,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4QOZCRA9TVsSAnZWagAAd2AQAJxzHX1OkzNOCu0ks5GS\n+GdOvh2864n99tnIs1M4/KDaG23yBvOUIt5ALIWfxpREicUfI3MpUxI/F5ks\nNbxsuYTkHrcwQhY6jK8iEaUo7C+nx4gYkHjq2Sb+QXvXvRXOl38pbDIXidgm\n+Bm+LM1AzK9O7TZFeiAgFUu6wTr3FgDbQp0XUbA/UVBd2smk+hNmGsNx/cKM\nGiY+aINX9QhHLty9dISvMk2OAPIG7FlOf2tV/8Xhv8sx/9OXZRpkQDni8zJS\nfwwmKmcWe8hi3uwj44qVxzC0DVshhVLlGAN8Ce8h63nG7+VGxCGuCisSEwJu\nzrqsHmaTCAJ5fpS/pFvCEHXG4A7p8kpyae0dH6ain/rxd4Oq2QEicK3exen6\n2efnI9m8Eh69L/JzhTS1OgZB1hBQ+1oYearwB7ptmf1RJ3LuZXGoSHJ9U4a1\nM2Wkrj+DuKZVGQgZih92GkYzBO+qjvA7WcbDN0lCg7vCXLbxkiTTQlKdzkbD\nTPC/fl2ZsYPeaK5BPaI56yV60R7xNaaCKyj3WtDyRIxCLDv8fpBtK8RXz5Lz\nHwAkjJlOshnrCnnttAU9Fz9iNwC/syLZLOs4jGLjE28DWXj/fV+XwmOg+nOU\nmjE4EwZ0TM2uuCwY7Q8mJqeAt/iSovTDq5goRb4siUE8jBsOWNrusRMLY3VO\nnWCW\r\n=xDQK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCE0BGtQqw2x72n1iix+XIiqlFbvKWMeqwYDx41RPlRbAIhAIkuRFM2ymBWExtBB7e99bxCmcWCYm4+U+iG8cFylb1g"}]},"maintainers":[{"email":"jacksteamdev@gmail.com","name":"jacksteamdev"},{"email":"andrew@shellscape.org","name":"shellscape"}],"_npmUser":{"name":"jacksteamdev","email":"jacksteamdev@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jest-chrome_0.6.0_1591804825284_0.11921673225331708"},"_hasShrinkwrap":false},"0.7.0":{"name":"jest-chrome","version":"0.7.0","description":"Test Chrome extensions with Jest. A complete mock of the Chrome API.","keywords":["api","chrome","chromium","extension","jest","mock","test","typescript"],"repository":{"type":"git","url":"git+https://github.com/extend-chrome/jest-chrome.git"},"bugs":{"url":"https://github.com/extend-chrome/jest-chrome/issues"},"license":"MIT","author":{"name":"Jack Steam","email":"jacksteamdev@gmail.com"},"main":"lib/index.cjs.js","module":"lib/index.esm.js","types":"types/index.d.ts","scripts":{"build":"run-s build:clean build:pro build:types build:copy","build:clean":"rm -rf lib types","build:copy":"copyfiles -f src/jest-chrome.d.ts types","build:dev":"rollup -c --environment NODE_ENV:development","build:pro":"rollup -c --environment NODE_ENV:production","build:types":"tsc -p tsconfig.d.json","build:watch":"npm run build:dev -- -w","postpublish":"rm -rf node_modules package-lock.json && pnpm i","start":"run-p build:watch","pretest":"npm run build","test":"jest"},"dependencies":{"@types/chrome":"^0.0.114"},"devDependencies":{"@rollup/plugin-commonjs":"^12.0.0","@rollup/plugin-json":"^4.0.3","@rollup/plugin-node-resolve":"^8.0.0","@rollup/plugin-typescript":"^4.1.2","@sucrase/jest-plugin":"^2.0.0","@types/filesystem":"^0.0.29","@types/fs-extra":"^9.0.1","@types/jest":"^25.2.3","@types/jest-in-case":"^1.0.2","@types/lodash":"^4.14.153","@types/node":"^14.0.5","@types/power-assert":"^1.5.3","@types/puppeteer":"^3.0.0","@typescript-eslint/eslint-plugin":"^3.0.2","@typescript-eslint/parser":"^3.0.2","chrome-promise":"^3.0.5","copyfiles":"^2.3.0","eslint":"^7.1.0","eslint-plugin-jest":"^23.13.2","fs-extra":"^9.0.0","jest":"^26.0.1","lodash":"^4.17.15","npm-run-all":"^4.1.5","prettier":"^2.0.5","rollup":"^2.11.2","ts-jest":"^26.0.0","tslib":"^2.0.0","typescript":"^3.9.3"},"peerDependencies":{"jest":"^24.9.0"},"gitHead":"9f4c9f01b49443283b1b653f268ffccad44d2f1f","homepage":"https://github.com/extend-chrome/jest-chrome#readme","_id":"jest-chrome@0.7.0","_nodeVersion":"14.6.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-afOzmTh3Nzr1FDKU/nsfIi/OmyScl6Pd6+jdqaBoRNwdGdYnMEWgZKW73KesdcywnLBEHRCKO4ftY+VTbqgPww==","shasum":"4a2105370f916abf20cf5f389d0818698c28b05a","tarball":"https://registry.npmjs.org/jest-chrome/-/jest-chrome-0.7.0.tgz","fileCount":13,"unpackedSize":694759,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfH0tuCRA9TVsSAnZWagAA8b0P/jSBG9YLqkm8zmgKvJ4Z\nlZbSlk/qlA46VqUbjUIMf8MnWW0JTpGqVirjUXB7lkdftbolIISRN4C8iXlU\nSsxc3vQ8fpT/d5EDlq51fAIB+QbesmAgCgl+oBPajZeHemGBoXAtQUrDV7Ii\nQrFTfenpJVkEEllS5/i/DXU5177ip1Xn2ic91pGw5Gtrg+iw+rV64Sw+slFR\nRlcTNdFV+T1rpbaEof8GwwS7BxAbj4e1Pc9eQIBktATZtMsoDzgp4iTQsrSf\n3m38SeSo6uBmB9tPCrgSUKfwwH6pe31EMKrtRdjw+pLcmhvTm1mpU29CPzgB\n8DDBDArFYq7LlAuT5SzgtHa8gs1GcTMl1FpaqsnXFFrdaYScEHSYNgsPR9g8\nedKu1ricJS4fFy5pTNvC8OFWsCmwEfP/yOqI+ADaz6fKl9+roqXL42TAb86L\nIZbapRtY4UrwOlgDWoaasJoCKdPL0VgqMbtk94iIZGOvXgbwxU+Ft75wuMqx\n++qBJyV7V8zVJ3JQRh8ZwPVVWdHMx2YLGHaC4878k2Db3+gpqz+aJk8GqFqW\nq5G/BzZB+rSqLO0PVPH949WMQD2gjStKpfjMu+/hDvTFY3i0f2qXvg5xew1q\n1OATMvbE/e4LH4aIe6xLMfZR+PqG24TTW2OatVIBLMPPTH8/EnqdlgGE8NiK\nh0iq\r\n=eJ5M\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDofKMcHFSPM1hQy7X27mMKG2WwvPqC23PudIjnP2UGFwIhAJ2bWkgEjj+mLp8+CfQUdXyaFAI9Jjif7e8zu/nXifCP"}]},"maintainers":[{"email":"jacksteamdev@gmail.com","name":"jacksteamdev"}],"_npmUser":{"name":"jacksteamdev","email":"jacksteamdev@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jest-chrome_0.7.0_1595886446297_0.4765032495822692"},"_hasShrinkwrap":false},"0.7.1":{"name":"jest-chrome","version":"0.7.1","description":"Test Chrome extensions with Jest. A complete mock of the Chrome API.","keywords":["api","chrome","chromium","extension","jest","mock","test","typescript"],"repository":{"type":"git","url":"git+https://github.com/extend-chrome/jest-chrome.git"},"bugs":{"url":"https://github.com/extend-chrome/jest-chrome/issues"},"license":"MIT","author":{"name":"Jack Steam","email":"jacksteamdev@gmail.com"},"main":"lib/index.cjs.js","module":"lib/index.esm.js","types":"types/index.d.ts","scripts":{"build":"run-s build:clean build:pro build:types build:copy","build:clean":"rm -rf lib types","build:copy":"copyfiles -f src/jest-chrome.d.ts types","build:dev":"rollup -c --environment NODE_ENV:development","build:pro":"rollup -c --environment NODE_ENV:production","build:types":"tsc -p tsconfig.d.json","build:watch":"npm run build:dev -- -w","postpublish":"rm -rf node_modules package-lock.json && pnpm i","start":"run-p build:watch","pretest":"npm run build","test":"jest"},"dependencies":{"@types/chrome":"^0.0.114"},"devDependencies":{"@rollup/plugin-commonjs":"^12.0.0","@rollup/plugin-json":"^4.0.3","@rollup/plugin-node-resolve":"^8.0.0","@rollup/plugin-typescript":"^4.1.2","@sucrase/jest-plugin":"^2.0.0","@types/filesystem":"^0.0.29","@types/fs-extra":"^9.0.1","@types/jest":"^25.2.3","@types/jest-in-case":"^1.0.2","@types/lodash":"^4.14.153","@types/node":"^14.0.5","@types/power-assert":"^1.5.3","@types/puppeteer":"^3.0.0","@typescript-eslint/eslint-plugin":"^3.0.2","@typescript-eslint/parser":"^3.0.2","chrome-promise":"^3.0.5","copyfiles":"^2.3.0","eslint":"^7.1.0","eslint-plugin-jest":"^23.13.2","fs-extra":"^9.0.0","jest":"^26.0.1","lodash":"^4.17.15","npm-run-all":"^4.1.5","prettier":"^2.0.5","rollup":"^2.11.2","ts-jest":"^26.0.0","tslib":"^2.0.0","typescript":"^3.9.3"},"peerDependencies":{"jest":"^26.0.1"},"gitHead":"4951ba42852d4f355f4c8f97abe49384d6767823","homepage":"https://github.com/extend-chrome/jest-chrome#readme","_id":"jest-chrome@0.7.1","_nodeVersion":"14.15.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-rUsDoOIxvZr4JpzyYWepE5/l0xM5VO6010g93jhbaeYwJaJGpazYIClbLtbeWg+zUxMJvLdN3iDMvT6m8wNMwA==","shasum":"72dd7cc0367e6b24f17974fb78f59665dafd0a10","tarball":"https://registry.npmjs.org/jest-chrome/-/jest-chrome-0.7.1.tgz","fileCount":13,"unpackedSize":694759,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgiyDICRA9TVsSAnZWagAAkFUQAI55nLsGCV2ooE/+p2HN\nXRrzqmz7UPBbkAYqK7cAw9ZxgtQ1sLKUAGj950UP5uq6lT5tWd+qJrob+Nr2\nO3L2e19rzcxM1Ndg+ysVidarvqy68UDZ+G8gjKBaxiL73u+54hxdOKan67Js\nEeuALttPH0jUtWPTgIrrVpvyyYQPdXtgTKvEGsUO20wwesixUjeu9+DQFVCT\ngtKR7on+6G49DVhcfLpKOIjiCr0XhXQuX7DyWOoIgEqhJmDTlnhLoU3SJY4h\nD+m5d7XhgfC+V5sAYAPa5Y3cRpuAANhys6kIdHRAXybW+RRx9jP6N2uaYLFv\nn9YaHeVy4FVRGo53kohD5j53juO1xku/A0nnX3pTob8ribE1BTUfRDQ6PWVH\nck/6FI2/DNIUQK0+vHE1dLa1ZW3oIWA7zQpWFko9IS3C6Cfc3vDT0w7peXc/\nui2vG+Kl9SmwU5qp0oa2mjzbsNf9Z9Kfv+3se2KAPqx8tcp8aumo2Pg0EPwR\nWB4yP+eSWQb4Tdw1m3AjluEpkUiYDMZOWxf6PHlVUj1mW4KdZwxCOUK8Iw/K\nb3abT+pyuNBN+jIys8t/JCdRHRi+K86nNo+TuyYaDbHV2zXtT8eJbJBkgp53\nwj56fMIskl73GMgf0N26NtMGHmWsjXk3NIjwgaUZMOFetclO/MLkxfyNr/En\n8lYl\r\n=ZCf8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCF+gW9UUVmAARSw52BXj/tZPqA9OOnmUKhaAW2htDJbwIhAKBD9CcoQJO1FlkOIiaF/Auil4K/msiAyt+i/fp7OxSU"}]},"_npmUser":{"name":"jacksteamdev","email":"jacksteamdev@gmail.com"},"directories":{},"maintainers":[{"name":"jacksteamdev","email":"jacksteamdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jest-chrome_0.7.1_1619730631545_0.6136523400901346"},"_hasShrinkwrap":false},"0.7.2":{"name":"jest-chrome","version":"0.7.2","description":"Test Chrome extensions with Jest. A complete mock of the Chrome API.","keywords":["api","chrome","chromium","extension","jest","mock","test","typescript"],"repository":{"type":"git","url":"git+https://github.com/extend-chrome/jest-chrome.git"},"bugs":{"url":"https://github.com/extend-chrome/jest-chrome/issues"},"license":"MIT","author":{"name":"Jack Steam","email":"jacksteamdev@gmail.com"},"main":"lib/index.cjs.js","module":"lib/index.esm.js","types":"types/index.d.ts","scripts":{"build":"run-s build:clean build:pro build:types build:copy","build:clean":"rm -rf lib types","build:copy":"copyfiles -f src/jest-chrome.d.ts types","build:dev":"rollup -c --environment NODE_ENV:development","build:pro":"rollup -c --environment NODE_ENV:production","build:types":"tsc -p tsconfig.d.json","build:watch":"npm run build:dev -- -w","postpublish":"rm -rf node_modules package-lock.json && pnpm i","start":"run-p build:watch","pretest":"npm run build","test":"jest"},"dependencies":{"@types/chrome":"^0.0.114"},"devDependencies":{"@rollup/plugin-commonjs":"^12.0.0","@rollup/plugin-json":"^4.0.3","@rollup/plugin-node-resolve":"^8.0.0","@rollup/plugin-typescript":"^4.1.2","@sucrase/jest-plugin":"^2.0.0","@types/filesystem":"^0.0.29","@types/fs-extra":"^9.0.1","@types/jest":"^25.2.3","@types/jest-in-case":"^1.0.2","@types/lodash":"^4.14.153","@types/node":"^14.0.5","@types/power-assert":"^1.5.3","@types/puppeteer":"^3.0.0","@typescript-eslint/eslint-plugin":"^3.0.2","@typescript-eslint/parser":"^3.0.2","chrome-promise":"^3.0.5","copyfiles":"^2.3.0","eslint":"^7.1.0","eslint-plugin-jest":"^23.13.2","fs-extra":"^9.0.0","jest":"^26.0.1","lodash":"^4.17.15","npm-run-all":"^4.1.5","prettier":"^2.0.5","rollup":"^2.11.2","ts-jest":"^26.0.0","tslib":"^2.0.0","typescript":"^3.9.3"},"peerDependencies":{"jest":"^26.0.1 || ^27.0.0"},"gitHead":"f24731917aa03b84c151a2b2a59594af51478357","homepage":"https://github.com/extend-chrome/jest-chrome#readme","_id":"jest-chrome@0.7.2","_nodeVersion":"14.15.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-RSRDi8qNX54Q3ltSC2rW25+47nwY4DoruHOjHR0JZxijITS2PZrQ3j0jZPP3ywC0GuX0JNNwsKD3+iaKzOJEAA==","shasum":"4643ba6010f98c8bb1398e6d5f206a6710879cd3","tarball":"https://registry.npmjs.org/jest-chrome/-/jest-chrome-0.7.2.tgz","fileCount":13,"unpackedSize":694770,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhFT3RCRA9TVsSAnZWagAAtmYP/1MOoMX+vzc/I0mNwVVC\nsQCrTOxG5K72VuBK5u1iRO06LIYz4r+7982zGvX+1Ft/OGb+t4mJoecUvsBk\niOgXLMhTkC3JA8HGCrs0qCPYkq/N5f1QDm7HBxD1xJbpXDmJ4WnJyQsaauXN\nY5SXuTghHwM60RiL/L79WQ7UFUnwXEdkfBatUCFzeKswl8IA/SpOPMbrRouT\nOam0MgiNMS84fGL2bCjYEwotG50ZfvZt/9Bwbi/RFlcxNUetZ9K4AuRQOGTY\nxUlN7Mr7jItWiWbh2TzjuhZLF05+eL+PjrunH51J/IIdHiVCFaadx5Y77Gu6\n1sK3s0/ouIFuZLs6T7el8GNLTqpNCwXw3ULl98SsZqEQCmtJfoH9dyE68z1e\nuKm7P7OVFULzQvH18Zky5Elmgk+SwhVJNtQDScp9c7R5IcB9KTAhKEafDndd\nFO2mZxEEsJ6rPDMw9fTWAB8C8SirdEAymmZmow36upsy9GuTMq4zqmMOqiws\nX32n92uDiW2moFPW/dzBV3YXKwpMaq3pk1JfeocMPJHNxbAfLYoH6qZBqx08\nI3KqOG79CtM50waYkAo9fV99+bAnaA4B+s8pHM/HQRqWCmLa31e/5z6ekzvb\nw9qgoHj4cA3mchCzs2bwi9nDevWfbSrRpa2azGxS3rYCWXFu49v+jFKQZQNh\n0E9K\r\n=uOP1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEgj4zQOJ35RFVql2DMCgxKdflzgOdecGNFlQ9dSvLb8AiBsX0n6usvd838NbzhEH07kmqwGM/5OvxuoQdm1lE7rMA=="}]},"_npmUser":{"name":"jacksteamdev","email":"jacksteamdev@gmail.com"},"directories":{},"maintainers":[{"name":"jacksteamdev","email":"jacksteamdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jest-chrome_0.7.2_1628782033551_0.9147360007927767"},"_hasShrinkwrap":false},"0.8.0":{"name":"jest-chrome","version":"0.8.0","description":"Test Chrome extensions with Jest. A complete mock of the Chrome API.","keywords":["api","chrome","chromium","extension","jest","mock","test","typescript"],"repository":{"type":"git","url":"git+https://github.com/extend-chrome/jest-chrome.git"},"bugs":{"url":"https://github.com/extend-chrome/jest-chrome/issues"},"license":"MIT","author":{"name":"Jack Steam","email":"jacksteamdev@gmail.com"},"main":"lib/index.cjs.js","module":"lib/index.esm.js","types":"types/index.d.ts","dependencies":{"@types/chrome":"^0.0.114"},"devDependencies":{"@rollup/plugin-commonjs":"^12.0.0","@rollup/plugin-json":"^4.0.3","@rollup/plugin-node-resolve":"^8.0.0","@rollup/plugin-typescript":"^4.1.2","@sucrase/jest-plugin":"^2.0.0","@types/filesystem":"^0.0.29","@types/fs-extra":"^9.0.1","@types/jest":"^25.2.3","@types/jest-in-case":"^1.0.2","@types/lodash":"^4.14.153","@types/node":"^14.0.5","@types/power-assert":"^1.5.3","@types/puppeteer":"^3.0.0","@typescript-eslint/eslint-plugin":"^3.0.2","@typescript-eslint/parser":"^3.0.2","chrome-promise":"^3.0.5","copyfiles":"^2.3.0","eslint":"^7.1.0","eslint-plugin-jest":"^23.13.2","fs-extra":"^9.0.0","jest":"^26.0.1","lodash":"^4.17.15","npm-run-all":"^4.1.5","prettier":"^2.0.5","rollup":"^2.11.2","ts-jest":"^26.0.0","tslib":"^2.0.0","typescript":"^3.9.3"},"peerDependencies":{"jest":"^26.0.1 || ^27.0.0"},"scripts":{"build":"run-s build:clean build:pro build:types build:copy","build:clean":"rm -rf lib types","build:copy":"copyfiles -f src/jest-chrome.d.ts types","build:dev":"rollup -c --environment NODE_ENV:development","build:pro":"rollup -c --environment NODE_ENV:production","build:types":"tsc -p tsconfig.d.json","build:watch":"npm run build:dev -- -w","start":"run-p build:watch","pretest":"npm run build","test":"jest"},"homepage":"https://github.com/extend-chrome/jest-chrome#readme","_id":"jest-chrome@0.8.0","_integrity":"sha512-39RR1GT9nI4e4jsuH1vIf4l5ApxxkcstjGJr+GsOURL8f4Db0UlbRnsZaM+ZRniaGtokqklUH5VFKGZZ6YztUg==","_resolved":"/private/var/folders/r8/yscdgs7x11j3vgz980h7_56h0000gn/T/a71476a292b6d236f45889ed8ece820a/jest-chrome-0.8.0.tgz","_from":"file:jest-chrome-0.8.0.tgz","_nodeVersion":"16.17.1","_npmVersion":"8.15.0","dist":{"integrity":"sha512-39RR1GT9nI4e4jsuH1vIf4l5ApxxkcstjGJr+GsOURL8f4Db0UlbRnsZaM+ZRniaGtokqklUH5VFKGZZ6YztUg==","shasum":"f741f5cf49292326eb9a2507111b9a77a01a495d","tarball":"https://registry.npmjs.org/jest-chrome/-/jest-chrome-0.8.0.tgz","fileCount":12,"unpackedSize":694067,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDuTa1nQC/iI6igxIRsC1LAifLxvb7kBh9GgcJunqPb8QIhAORaAu5HXX7Nn4LF9yloSqSC4EC2E39x8bAKElM+fhN6"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJja7oeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrxrg//Twe1Av8SmtR/JXhd/9fE62H5db+LJeCPXlOUGZrb9n5R3jcB\r\nEi9MGpSQuPVpm996214wKriRxOHB/UJrr7Mf2n72bdhPJI7DKZ0+uScqYVGh\r\nbyvCv1cbKZBByC6hnQexOFX7p+VBjX8AeF0wde1oyDSw82qnXN3Lk5NGLqTy\r\nZiTiJSB5NIXCvKh4p1VoQSxpzMImd6HrWY30C5s3rzuXq1mU5R30QOmikgfR\r\ni/BqTP/U2E6IcNdUgbDRhuRcO3mOSXHBLmN3jHBKPdJu+4xPcXLorcD9Ilwh\r\ntJeWOzjrdmiIDOoYics1GBVePChxYxLIRmEAXarFwKojGt5JmmEe9jth57S2\r\nlHTxeS34Tio+sBLr4Mrx+MnKaw4RGNkPPGlU4Anq8nbA/Vt3xhXLaJOhKG7/\r\n2EgRz/YfwQyGQuQRXzqwl/LJFW0JniLb9jhqrkeqt7qurLuDW0kTCRjSVckG\r\nn9MUJt306yoxTwhOBgKUIIBU8Emmde7zFApf51SLzzU+5RBEdERqS2d7X1xA\r\nn11EQNw9gZCMoR1jPnhMXzapJHgJ2tBprBD/ARYSSjtZpjnawiIMNHeqVgoA\r\nknk5kjMOHrbGft6GVWyLxTfCAOZZ3gkNgwk34s3Y0KzJgxagrEosIjg1LZIi\r\nLrqABeNud4SSE69KvRN2k+WnDi3+lzbsAe8=\r\n=8iCy\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jacksteamdev","email":"jacksteamdev@gmail.com"},"directories":{},"maintainers":[{"name":"jacksteamdev","email":"jacksteamdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jest-chrome_0.8.0_1668004381772_0.23380803322535137"},"_hasShrinkwrap":false}},"readme":"# `jest-chrome`\n\nA complete mock of the Chrome API for Chrome extensions, for use\nwith Jest.\n\nTypeScript support is built in. Each function and event is based\non the\n[`@types/chrome`](https://www.npmjs.com/package/@types/chrome)\npackage.\n\n## Installation\n\n```sh\nnpm i jest-chrome -D\n```\n\nSet `chrome` in the global scope during setup so that it is\nmocked in imported modules. Add a setup file to `jest.config.js`:\n\n```javascript\n// jest.config.js\n\nmodule.exports = {\n  // Add this line to your Jest config\n  setupFilesAfterEnv: ['./jest.setup.js'],\n}\n```\n\nUse the setup file to assign the mocked `chrome` object to the\n`global` object:\n\n```javascript\n// jest.setup.js\n\nObject.assign(global, require('jest-chrome'))\n```\n\nImport `chrome` from `jest-chrome` for Intellisense and linting.\nThis is the same object as `chrome` in the global scope.\n\n```javascript\nimport { chrome } from 'jest-chrome'\n```\n\n## Usage\n\n> All of the following code blocks come from\n> [`tests/demo.test.ts`](tests/demo.test.ts).\n\n### Events\n\nEach mocked Event has all the normal methods (`addListener`,\n`hasListener`, `hasListeners`, and `removeListener`) plus two\nmore: `callListeners` and `clearListeners`.\n\n`callListeners` triggers a specific Event. Call `callListeners`\nwith the arguments you expect Chrome to pass to your event\nlisteners. Each event listener for that Event will be called with\nthose arguments.\n\n`clearListeners` removes all listeners for a specific Event.\n\n```javascript\ntest('chrome api events', () => {\n  const listenerSpy = jest.fn()\n  const sendResponseSpy = jest.fn()\n\n  chrome.runtime.onMessage.addListener(listenerSpy)\n\n  expect(listenerSpy).not.toBeCalled()\n  expect(chrome.runtime.onMessage.hasListeners()).toBe(true)\n\n  chrome.runtime.onMessage.callListeners(\n    { greeting: 'hello' }, // message\n    {}, // MessageSender object\n    sendResponseSpy, // SendResponse function\n  )\n\n  expect(listenerSpy).toBeCalledWith(\n    { greeting: 'hello' },\n    {},\n    sendResponseSpy,\n  )\n  expect(sendResponseSpy).not.toBeCalled()\n})\n```\n\n### Synchronous functions\n\nSome Chrome API functions are synchronous. Use these like any\nmocked function:\n\n```javascript\ntest('chrome api functions', () => {\n  const manifest = {\n    name: 'my chrome extension',\n    manifest_version: 2,\n    version: '1.0.0',\n  }\n\n  chrome.runtime.getManifest.mockImplementation(() => manifest)\n\n  expect(chrome.runtime.getManifest()).toEqual(manifest)\n  expect(chrome.runtime.getManifest).toBeCalled()\n})\n```\n\n### Functions with callbacks\n\nMost Chrome API functions do something asynchronous. They use\ncallbacks to handle the result. The mock implementation should be\nset to handle the callback.\n\n> Mocked functions have no default mock implementation!\n\n```javascript\ntest('chrome api functions with callback', () => {\n  const message = { greeting: 'hello?' }\n  const response = { greeting: 'here I am' }\n  const callbackSpy = jest.fn()\n\n  chrome.runtime.sendMessage.mockImplementation(\n    (message, callback) => {\n      callback(response)\n    },\n  )\n\n  chrome.runtime.sendMessage(message, callbackSpy)\n\n  expect(chrome.runtime.sendMessage).toBeCalledWith(\n    message,\n    callbackSpy,\n  )\n  expect(callbackSpy).toBeCalledWith(response)\n})\n```\n\n### Callbacks and `chrome.runtime.lastError`\n\nWhen something goes wrong in a callback, Chrome sets\n`chrome.runtime.lastError` to an object with a message property.\nIf you need to test this, set and clear `lastError` in the mock\nimplementation.\n\n> Remember that `lastError` is always undefined outside of a\n> callback!\n\n`lastError` is an object with a\n[getter function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/get)\nfor the `message` property. If `message` is not checked, Chrome\nwill log the error to the console. To emulate this, simply set\n`lastError` to an object with a getter that wraps a mock, as seen\nbelow:\n\n```javascript\ntest('chrome api functions with lastError', () => {\n  const message = { greeting: 'hello?' }\n  const response = { greeting: 'here I am' }\n\n  // lastError setup\n  const lastErrorMessage = 'this is an error'\n  const lastErrorGetter = jest.fn(() => lastErrorMessage)\n  const lastError = {\n    get message() {\n      return lastErrorGetter()\n    },\n  }\n\n  // mock implementation\n  chrome.runtime.sendMessage.mockImplementation(\n    (message, callback) => {\n      chrome.runtime.lastError = lastError\n\n      callback(response)\n\n      // lastError is undefined outside of a callback\n      delete chrome.runtime.lastError\n    },\n  )\n\n  // callback implementation\n  const lastErrorSpy = jest.fn()\n  const callbackSpy = jest.fn(() => {\n    if (chrome.runtime.lastError) {\n      lastErrorSpy(chrome.runtime.lastError.message)\n    }\n  })\n\n  // send a message\n  chrome.runtime.sendMessage(message, callbackSpy)\n\n  expect(callbackSpy).toBeCalledWith(response)\n  expect(lastErrorGetter).toBeCalled()\n  expect(lastErrorSpy).toBeCalledWith(lastErrorMessage)\n\n  // lastError has been cleared\n  expect(chrome.runtime.lastError).toBeUndefined()\n})\n```\n\n### Contributions\n\nThe `chrome` object is based on schemas from the Chromium\nproject, with thanks to\n[`sinon-chrome`](https://github.com/acvetkov/sinon-chrome) for\ncompiling the schemas.\n\nSpecial thanks to [@shellscape](https://github.com/shellscape)\nfor transferring the NPM package name `jest-chrome` to us!\n","maintainers":[{"name":"jacksteamdev","email":"jacksteamdev@gmail.com"}],"time":{"modified":"2022-11-09T14:33:02.107Z","created":"2018-01-15T13:53:20.901Z","0.0.1":"2018-01-15T13:53:20.901Z","0.6.0":"2020-06-10T16:00:25.395Z","0.7.0":"2020-07-27T21:47:26.584Z","0.7.1":"2021-04-29T21:10:31.695Z","0.7.2":"2021-08-12T15:27:13.667Z","0.8.0":"2022-11-09T14:33:01.991Z"},"author":{"name":"Jack Steam","email":"jacksteamdev@gmail.com"},"license":"MIT","readmeFilename":"README.md","homepage":"https://github.com/extend-chrome/jest-chrome#readme","keywords":["api","chrome","chromium","extension","jest","mock","test","typescript"],"repository":{"type":"git","url":"git+https://github.com/extend-chrome/jest-chrome.git"},"bugs":{"url":"https://github.com/extend-chrome/jest-chrome/issues"}}