{"_id":"@-ui/jest","_rev":"5-2198bdb65ae11f69a736cc4a23d7e5b3","name":"@-ui/jest","dist-tags":{"latest":"1.1.1"},"versions":{"1.0.0":{"name":"@-ui/jest","version":"1.0.0","homepage":"https://github.com/dash-ui/jest#readme","repository":{"type":"git","url":"https://github.com/dash-ui/jest.git"},"bugs":{"url":"https://github.com/dash-ui/jest/issues"},"license":"MIT","description":"Jest utilities for dash-ui","keywords":["jest"],"main":"dist/index.js","sideEffects":false,"scripts":{"build":"babel src -d dist -x .js --ignore \"**/*.test.js\",\"**/test.js\" --delete-dir-on-start","format":"prettier --write \"**/*.{js,md,yml,json,babelrc,eslintrc,prettierrc}\"","lint":"eslint .","prepublishOnly":"npm run lint && npm run test && npm run build && npm run format","test":"jest","validate":"npm run lint && npm run test -- --coverage"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"**/*.js":["eslint","prettier --write"],"**/*.{md,yml,json,babelrc,eslintrc,prettierrc}":["prettier --write"]},"devDependencies":{"@-ui/styles":"^1.0.36","@babel/preset-react":"^7.7.0","@lunde/babel-preset-es":"latest","babel-eslint":"latest","cross-env":"latest","enzyme":"^3.10.0","enzyme-adapter-react-16":"^1.15.1","enzyme-to-json":"^3.4.3","eslint":"latest","eslint-import-resolver-jest":"latest","eslint-plugin-jest":"latest","husky":"latest","jest":"latest","lint-staged":"latest","preact":"10","preact-render-to-json":"^3.6.6","prettier":"latest","pretty-format":"^24.9.0","react":"^16.12.0","react-dom":"^16.12.0","react-test-renderer":"^16.12.0","rimraf":"^2.6.3"},"dependencies":{"chalk":"^3.0.0","css":"^2.2.4"},"peerDependencies":{},"licenseText":"MIT License\n\nCopyright (c) 2019 Jared Lunde\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@-ui/jest@1.0.0","dist":{"shasum":"615dfc6d5b0b0bf6412c6fd9aec952e5f6e2f882","integrity":"sha512-7oIbn78NsRFIb4m5Yj8JD/sxp/kouriIxKhw+Ecyaj6Kmo3DRjly7GV7qGBy2vEXe+ObzEeDVMVjNR5EF5N9dw==","tarball":"https://registry.npmjs.org/@-ui/jest/-/jest-1.0.0.tgz","fileCount":6,"unpackedSize":19169,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdzzMGCRA9TVsSAnZWagAAC6wQAJ31/7nzfeYFMadGnIk0\n33h3jWwW+Z/gCJyUtJRKbBY7oXaJUACO00eGv70RAdKIczudGRE6wFwkxiyi\nDGEv3iuB5OB7symMljreiVEyyuTMrm4P5FP00mgKcVDzzWatWev3pWCIqYFK\nypIdED33BXhZFnA/Haa2cL+8OcMf8sNl7eL/xZuotfL4AVpsWAK4nGzQPrpu\nyvc+qKcJ+5X5g4AmCKXlQUQ1/eKs0ci2Bx5hy4GfWWKnHHi8OFzQTx2JdAkM\nMoU606j3S9XcSeco+3rw8jpDK1CcohWH15SmmpJFc+FHngf89H9bgcVkkTEK\npHL2O+moHIrhzfey4X6yncMjU12ox3gNgf8ny1+ZlpBBMFjkcy8wVl7JaD0m\nF/jD2PYhPFCsJO4yxH5j53IgJadZskbEcZFHKPfGk84AbCfECVc4l810xj7Z\nT7a4qVL79NzLNGBztuDgS/4Q8h6oZ9W5lyssBcoMTd68TFeNl5E2R/malRlI\nX6V8n28RIGXI7c+vCHCP/pyitF6B+RiIlTqoNTD1+acNyd2gakNlFnsJZIqT\nFW7gZ4BvGoTWQBgePPitbn4O5VYw5tZd9qngqRNJ89tHVB196owBKXDqUtHS\nCHJ3VAhRyMM3+31K/96WhWJOn5tUGevOlKhSNJFQrx8tLZZRFQXOJNdHAwo+\nCvkn\r\n=3OpS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDl+diGKFNJ7sc3xsld8+rzKaTJGBG62S2kARKTrx70DAiEA82TqrkkUF/7/zyPGemzYVtNPRHi9o5t489Ndt63tIUU="}]},"maintainers":[{"name":"jaredlunde","email":"jared.lunde@gmail.com"}],"_npmUser":{"name":"jaredlunde","email":"jared.lunde@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jest_1.0.0_1573860102300_0.9571911459523297"},"_hasShrinkwrap":false,"deprecated":"This package has moved to @dash-ui/jest"},"1.0.1":{"name":"@-ui/jest","version":"1.0.1","homepage":"https://github.com/dash-ui/jest#readme","repository":{"type":"git","url":"https://github.com/dash-ui/jest.git"},"bugs":{"url":"https://github.com/dash-ui/jest/issues"},"license":"MIT","description":"Jest utilities for dash-ui","keywords":["jest","dash","dash ui","-ui","jest serializer","css","jest css serializer","jest plugin","jest assertions"],"main":"dist/index.js","sideEffects":false,"scripts":{"build":"babel src -d dist -x .js --ignore \"**/*.test.js\",\"**/test.js\" --delete-dir-on-start","format":"prettier --write \"**/*.{js,md,yml,json,babelrc,eslintrc,prettierrc}\"","lint":"eslint .","prepublishOnly":"npm run lint && npm run test && npm run build && npm run format","test":"jest","validate":"npm run lint && npm run test -- --coverage"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"**/*.js":["eslint","prettier --write"],"**/*.{md,yml,json,babelrc,eslintrc,prettierrc}":["prettier --write"]},"devDependencies":{"@-ui/styles":"^1.0.36","@babel/preset-react":"^7.7.0","@lunde/babel-preset-es":"latest","babel-eslint":"latest","cross-env":"latest","enzyme":"^3.10.0","enzyme-adapter-react-16":"^1.15.1","enzyme-to-json":"^3.4.3","eslint":"latest","eslint-import-resolver-jest":"latest","eslint-plugin-jest":"latest","husky":"latest","jest":"latest","lint-staged":"latest","preact":"10","preact-render-to-json":"^3.6.6","prettier":"latest","pretty-format":"^24.9.0","react":"^16.12.0","react-dom":"^16.12.0","react-test-renderer":"^16.12.0","rimraf":"^2.6.3"},"dependencies":{"chalk":"^3.0.0","css":"^2.2.4"},"peerDependencies":{},"licenseText":"MIT License\n\nCopyright (c) 2019 Jared Lunde\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@-ui/jest@1.0.1","dist":{"shasum":"2e883e31fcccf1ea34e131b4fecbdd01658515fc","integrity":"sha512-+x/MX0qGID07OPCcPuCU+96X7FxIIkXUMulKDbKbdxkf9CeXg7iHc+gIQdWqTZlHg9YCI5zrAeKgirQAAsh66g==","tarball":"https://registry.npmjs.org/@-ui/jest/-/jest-1.0.1.tgz","fileCount":6,"unpackedSize":19311,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdz1pfCRA9TVsSAnZWagAAspMP/AsJGFadMK7c11sM7WL1\nRoOMEsQl6nLkXUh3ZJpYSWvUTibewPC3BOb/5yO5Ipi56nYAcZNaFgxKe6ij\nigWJ/yGKsdYwHZoeaQpA0h9A2Or4z0oIsIwkh84rPLY5BobbHJxc1UTVbdnr\ny/2DSUxoxSViqUNg8R0KIDczo0Sk1zUf12zaXzHeD++QIU0e6brEB4em6WXr\nSzwmqp2sn92JD1Cr+lisw2Zfpi5ipFr/8oNPqZ5DQ/Y3lJP+nd+v4a23zM8Q\nEq+jRmlfVTIEivOupceeoCdFjtPb3U/G+Y+hZpQ0UjlH8DjuQxHDoXCPVAII\nCxsdOVIe8QenbKt1xaQPV3M/0XjnVUOzlJx5KFWGtHT+/xZCG4WMSZBepRI1\n5eB/oMNEZVycXSO6bWbS5nlwLPgOYSxozZj52xBNY0/xMFLlVW64t4djKZ5z\nU67Eh3//4FK9JyklXDeTMsVvlbLtsRrwXmOUpPh3Wu3OVGz1lZe220sQtS46\nllLEAgBlvEVUWIGh6JmIIZzX9ZGw0CWdIRCgBxPp9ETs+UpGml7VFKH6SUyO\nnDr/OABQTiXgOL1qmeYOC6Ea/gVK/UjJ66DeHEzhV9fWUGoOpM+krHJJ7Iyt\n02Cq0llsUqkQKeorre4LLI+UcmmZIHvxxYivYU6/VSRupKvp2gcYbT+7vrU3\nhz2W\r\n=NNl9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF7Q29zr0fFf78A4Z0gH57on1VuiyhhPHtkSijvgdzRmAiEAizL7MVMjwQNV5wJUxlickaBsgUedhDZSs+5K9hvHUlY="}]},"maintainers":[{"name":"jaredlunde","email":"jared.lunde@gmail.com"}],"_npmUser":{"name":"jaredlunde","email":"jared.lunde@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jest_1.0.1_1573870175355_0.8907425433378451"},"_hasShrinkwrap":false,"deprecated":"This package has moved to @dash-ui/jest"},"1.1.0":{"name":"@-ui/jest","version":"1.1.0","homepage":"https://github.com/dash-ui/jest#readme","repository":{"type":"git","url":"https://github.com/dash-ui/jest.git"},"bugs":{"url":"https://github.com/dash-ui/jest/issues"},"license":"MIT","description":"Jest utilities for dash-ui","keywords":["jest","dash","dash ui","-ui","jest serializer","css","jest css serializer","jest plugin","jest assertions"],"main":"dist/index.js","types":"types/index.d.ts","sideEffects":false,"scripts":{"build":"babel src -d dist -x .js --ignore \"**/*.test.js\",\"**/test.js\" --delete-dir-on-start","format":"prettier --write \"**/*.{js,md,yml,json,babelrc,eslintrc,prettierrc}\"","lint":"eslint .","prepublishOnly":"npm run lint && npm run test && npm run build && npm run format","test":"jest","validate":"npm run lint && npm run test -- --coverage"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"**/*.js":["eslint","prettier --write"],"**/*.{md,yml,json,babelrc,eslintrc,prettierrc}":["prettier --write"]},"devDependencies":{"@-ui/styles":"^1.0.37","@babel/preset-react":"^7.7.0","@lunde/babel-preset-es":"latest","babel-eslint":"latest","cross-env":"latest","enzyme":"^3.10.0","enzyme-adapter-react-16":"^1.15.1","enzyme-to-json":"^3.4.3","eslint":"latest","eslint-import-resolver-jest":"latest","eslint-plugin-jest":"latest","husky":"latest","jest":"latest","lint-staged":"latest","preact":"10","preact-render-to-json":"^3.6.6","prettier":"latest","pretty-format":"^24.9.0","react":"^16.12.0","react-dom":"^16.12.0","react-test-renderer":"^16.12.0","rimraf":"^2.6.3"},"dependencies":{"chalk":"^3.0.0","css":"^2.2.4"},"peerDependencies":{},"licenseText":"MIT License\n\nCopyright (c) 2019 Jared Lunde\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@-ui/jest@1.1.0","dist":{"shasum":"62036489b53782a8daf63d7bf7441cd9821b0b6f","integrity":"sha512-FEP2akhArXzI1xwnXJDT3LRBYAjZXZMO1wP11uLWGkRTOYfdSs91Y1JZENAZSotqvz9EfleUztEWR4TUdhqNpQ==","tarball":"https://registry.npmjs.org/@-ui/jest/-/jest-1.1.0.tgz","fileCount":6,"unpackedSize":19342,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeoKuhCRA9TVsSAnZWagAA4DkP/1A4b+P0Cel4JodajGf/\nPdte/1eAJuRiIINeA8CG6xcNPzo8eed7ZKp2BRCGw8WgFbWF8bQ6GL1iphD9\nwDllgEbUTjUbLNs3in/DixTsCCau/AihnhiRw2icN7jmhEAK+eTGGZ5ydhMm\nSJk+nUbsS+IlFPPP8cFG3DDUct3JUXXzp9+LSjJlIq9gXfQ1vKhCAq+9jxKr\noXlrHrGFANL09d+KvJJKF9v1HYk44cNO1L2rtAvlELi3ruh+FzoToud1SYLP\nbo+l8188xUvETeBNIZjpY9Je7pCpgH90jRtDNM7UK696exTnLH3Dd+OSDP2y\neFRmB6xcFbP9Epfoz2IhcEIMwETKZZmJdCfzYg0OH0TkkF4d9ydajYyZsPRF\n7JOecudnMIptrpARN+65eoCyaEydYcd+otVCBqfFjN5jjmWy81aU6uYncmem\nd5zbCOZjhE3ATyOZkCJxB57r3y2EvCyW2cNpAYHLutmAOAcZtk0ldzx4EhS8\nTgSHjvEuC9aOiBlFT3nk4jczp9o8QvBkS657w/Xlp7gkLaARWUSh3oO/rcXQ\nrNOYQq/wNoi5htnAtmqCjSa1GgdNsDmODLNpDEZG1OHQr2DLqWr2DTy/wIW8\n6Q2mlpy/VsGittb9aN0nlLO08nUyONRd8RKhrElvO1GwQlDa8JPnAyQIQh2n\nNH5J\r\n=Ltip\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1Fl/2BkIVc+NjshDNbXTpGLKcCQycxfpl9gSNcG0AEQIgAcUGWtpQpLPq7LiOeUhucmkF0BMhrsjg76IuJuQ3zG4="}]},"maintainers":[{"name":"jaredlunde","email":"jared.lunde@gmail.com"}],"_npmUser":{"name":"jaredlunde","email":"jared.lunde@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jest_1.1.0_1587588001125_0.1248714157394073"},"_hasShrinkwrap":false,"deprecated":"This package has moved to @dash-ui/jest"},"1.1.1":{"name":"@-ui/jest","version":"1.1.1","homepage":"https://github.com/dash-ui/jest#readme","repository":{"type":"git","url":"https://github.com/dash-ui/jest.git"},"bugs":{"url":"https://github.com/dash-ui/jest/issues"},"license":"MIT","description":"Jest utilities for dash-ui","keywords":["jest","dash","dash ui","-ui","jest serializer","css","jest css serializer","jest plugin","jest assertions"],"main":"dist/index.js","types":"types/index.d.ts","sideEffects":false,"scripts":{"build":"babel src -d dist -x .js --ignore \"**/*.test.js\",\"**/test.js\" --delete-dir-on-start","format":"prettier --write \"**/*.{js,md,yml,json,babelrc,eslintrc,prettierrc}\"","lint":"eslint .","prepublishOnly":"npm run lint && npm run test && npm run build && npm run format","test":"jest","validate":"npm run lint && npm run test -- --coverage"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"**/*.js":["eslint","prettier --write"],"**/*.{md,yml,json,babelrc,eslintrc,prettierrc}":["prettier --write"]},"devDependencies":{"@-ui/styles":"^1.0.37","@babel/preset-react":"^7.7.0","@lunde/babel-preset-es":"latest","babel-eslint":"latest","cross-env":"latest","enzyme":"^3.10.0","enzyme-adapter-react-16":"^1.15.1","enzyme-to-json":"^3.4.3","eslint":"latest","eslint-import-resolver-jest":"latest","eslint-plugin-jest":"latest","husky":"latest","jest":"latest","lint-staged":"latest","preact":"10","preact-render-to-json":"^3.6.6","prettier":"latest","pretty-format":"^24.9.0","react":"^16.12.0","react-dom":"^16.12.0","react-test-renderer":"^16.12.0","rimraf":"^2.6.3"},"dependencies":{"chalk":"^3.0.0","css":"^2.2.4"},"peerDependencies":{},"licenseText":"MIT License\n\nCopyright (c) 2019 Jared Lunde\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@-ui/jest@1.1.1","dist":{"shasum":"d0c866e2ff9db2ff9c0035d3197163e7b897b902","integrity":"sha512-4n7hJlXzbjMcIOzyBtups8YQpyGLHHENsmr9XgaQ5oLeSg2pu7Bg4y4w/hn9XXEQKoyDsuuw1BHP5XVRKNyHKg==","tarball":"https://registry.npmjs.org/@-ui/jest/-/jest-1.1.1.tgz","fileCount":8,"unpackedSize":20459,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeoKwJCRA9TVsSAnZWagAAffcQAJN/cxIgCa5acXFvQTez\nAC5PJVxlIY4LYpWpK7r3d/rzwrr/LY1gzZe+LJ62Kp2P+ASq4vxNSHt8ovEa\nAe+gGxOLDB/5mXba9tZSQIRH+7Pze1/P3rBzcZCpB0pDkz+wPUEKEBd/ymdq\n5mCqWx1NKCRtHo1Bih6visJjrBg+qieCcWibNEVtsVEz1sRz7pnF1MT+v5wU\noBgvFRsoIhWCoJY9v6eQ5FFpA1+4CAkoGEn+qg9Raw7WcjJu9IqNtlKx4lrV\nY6BrtlvPMypd4kKL2XNYe9bnp9n3vnlZ2tSOP9+0BCUJG69RKpkkdMQrqTvN\nah5wdJfm8ihlrvyOrp6oz8uf0MDun2xRlwe5KDHAwBQ866rqIOQIVsX0S5ik\naRV5ojjvAzzXRk3Z+Xr/8hQkAw84st011e5HbYzXkeorWs4Od2V3cmi/f+Aj\nxKLX58CdsUgeFCt8wd5V+z2gNtaMIhs6YP4kohyek9H5YBcUJ16Zm9nwoZA8\nTTExqaPFmSKdcwMefQ4/HHmxn066xKZ1AwOzJEjESSO9tNJHMi75J6dO5H/+\nYhu34pe1UbwQ5dqk3xfIXFjJTEMm9qUFpupZ2uDvbKE7VnIDBFUtKJqI66Ii\nmoMgCPXQ0m5awRGG1wGZ+NZkZU5LHDTPEkWWyvAYl+SDy4tkF39PWFSKKtPt\nxwz1\r\n=+oiW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH9KjIRmm7qcfVCrg3hFMlPrMiXzJYvn98Nv8dMVrBpnAiBjJgbWzBLGOZol6XKCj2d+RQCbDpVn4uwR8/rX9b76ZA=="}]},"maintainers":[{"name":"jaredlunde","email":"jared.lunde@gmail.com"}],"_npmUser":{"name":"jaredlunde","email":"jared.lunde@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jest_1.1.1_1587588104869_0.04177177021085687"},"_hasShrinkwrap":false,"deprecated":"This package has moved to @dash-ui/jest"}},"time":{"created":"2019-11-15T23:21:42.097Z","1.0.0":"2019-11-15T23:21:42.434Z","modified":"2022-04-04T10:25:34.675Z","1.0.1":"2019-11-16T02:09:35.493Z","1.1.0":"2020-04-22T20:40:01.238Z","1.1.1":"2020-04-22T20:41:44.988Z"},"maintainers":[{"name":"jaredlunde","email":"jared.lunde@gmail.com"}],"description":"Jest utilities for dash-ui","homepage":"https://github.com/dash-ui/jest#readme","keywords":["jest","dash","dash ui","-ui","jest serializer","css","jest css serializer","jest plugin","jest assertions"],"repository":{"type":"git","url":"https://github.com/dash-ui/jest.git"},"bugs":{"url":"https://github.com/dash-ui/jest/issues"},"license":"MIT","readme":"<hr>\n<div align=\"center\">\n  <h1 align=\"center\">\n    @-ui/jest\n  </h1>\n</div>\n\n<p align=\"center\">\n  <a aria-label=\"Code coverage report\" href=\"https://codecov.io/gh/dash-ui/jest\">\n    <img alt=\"Code coverage\" src=\"https://img.shields.io/codecov/c/gh/dash-ui/jest?style=for-the-badge&labelColor=24292e\">\n  </a>\n  <a aria-label=\"Build status\" href=\"https://travis-ci.org/dash-ui/jest\">\n    <img alt=\"Build status\" src=\"https://img.shields.io/travis/dash-ui/jest?style=for-the-badge&labelColor=24292e\">\n  </a>\n  <a aria-label=\"NPM version\" href=\"https://www.npmjs.com/package/@-ui/jest\">\n    <img alt=\"NPM Version\" src=\"https://img.shields.io/npm/v/@-ui/jest?style=for-the-badge&labelColor=24292e\">\n  </a>\n  <a aria-label=\"License\" href=\"https://jaredlunde.mit-license.org/\">\n    <img alt=\"MIT License\" src=\"https://img.shields.io/npm/l/@-ui/jest?style=for-the-badge&labelColor=24292e\">\n  </a>\n</p>\n\n<pre align=\"center\">npm i -D @-ui/jest</pre>\n<hr>\n\nJest utilities for [`-ui`](https://github.com/dash-ui/styles)\n\n## -ui snapshots\n\nThe easiest way to test React, Preact, and Preact X components with `-ui` is using the snapshot serializer. You can register the serializer via the `snapshotSerializers` configuration property in your jest configuration like so:\n\n```js\n// jest.config.js\nmodule.exports = {\n  // ... other config\n  snapshotSerializers: ['@-ui/jest'],\n}\n```\n\nOr you can customize the serializer via the `createSerializer` method like so: (the example below is with react-test-renderer but `@-ui/jest` also works with enzyme and react-testing-library)\n\n```jsx harmony\nimport React from 'react'\nimport renderer from 'react-test-renderer'\nimport styles from '@-ui/styles'\nimport serializer from '@-ui/jest'\n\nexpect.addSnapshotSerializer(serializer)\n\ntest('renders with correct styles', () => {\n  const text = styles({\n    heading: `\n      font-size: 4rem;\n    `,\n  })\n\n  const tree = renderer\n    .create(<h1 className={text('heading')}>Hello world</h1>)\n    .toJSON()\n\n  expect(tree).toMatchSnapshot()\n})\n```\n\n### Options\n\n#### `classNameReplacer`\n\n`@-ui/jest`'s snapshot serializer replaces the hashes in class names with an index so that things like whitespace changes won't break snapshots. It optionally accepts a custom class name replacer, it defaults to the below.\n\n```jsx harmony\nconst classNameReplacer = (className, index) => `-ui-${index}`\n```\n\n```jsx harmony\nimport {createSerializer} from '@-ui/jest'\n\nexpect.addSnapshotSerializer(\n  createSerializer({\n    classNameReplacer(className, index) {\n      return `my-new-class-name-${index}`\n    },\n  })\n)\n```\n\n#### `DOMElements`\n\n`@-ui/jest`'s snapshot serializer inserts styles and replaces class names in both React and DOM elements. If you would like to disable this behavior for DOM elements, you can do so by passing `{ DOMElements: false }`. For example:\n\n```jsx\nimport {createSerializer} from '@-ui/jest'\n\n// configures @-ui/jest to ignore DOM elements\nexpect.addSnapshotSerializer(createSerializer({DOMElements: false}))\n```\n\n## Custom assertions\n\n### toHaveStyleRule\n\nTo make more explicit assertions when testing your components you can use the `toHaveStyleRule` matcher.\n\n```jsx harmony\nimport React from 'react'\nimport renderer from 'react-test-renderer'\nimport {matchers} from '@-ui/jest'\n\n// Add the custom matchers provided by '@-ui/jest'\nexpect.extend(matchers)\n\ntest('renders with correct styles', () => {\n  const text = styles({\n    heading: `\n      font-size: 4rem;\n    `,\n  })\n\n  const tree = renderer\n    .create(<h1 className={text('heading')}>Hello world</h1>)\n    .toJSON()\n\n  expect(tree).toHaveStyleRule('font-size', '4rem')\n  expect(tree).not.toHaveStyleRule('color', 'hotpink')\n})\n```\n\n## Credit\n\nThis was inspired by and relies almost entirely on work by [jest-emotion](https://github.com/emotion-js/emotion/tree/master/packages/jest-emotion)\nwhich was largely inspired by [jest-glamor-react](https://github.com/kentcdodds/jest-glamor-react).\n\n## LICENSE\n\nMIT\n","readmeFilename":"README.md"}