{"_id":"@alandeivson/jest-enzyme","_rev":"4-0fc95fb5a6146dd2abac5ee088e1db4b","name":"@alandeivson/jest-enzyme","dist-tags":{"latest":"8.1.3"},"versions":{"8.0.0":{"name":"@alandeivson/jest-enzyme","version":"8.0.0","description":"Testing Matchers for Enzyme","main":"lib/index.js","author":{"name":"Blaine Kasten","email":"blainekasten@gmail.com"},"license":"MIT","homepage":"https://github.com/FormidableLabs/enzyme-matchers/blob/master/packages/jest-enzyme#readme","scripts":{"pretest":"node ../../scripts/jest.js","test":"node ../../node_modules/jest-cli/bin/jest.js __tests__","failing:test":"node ../../node_modules/jest-cli/bin/jest.js __failing_tests__","jest":"node ../../node_modules/jest-cli/bin/jest.js __tests__","lint":"eslint ./src","clean":"rm -rf ./lib","build:js":"babel --root-mode upward src --out-dir lib --ignore '**/__tests__/*.js' --ignore '**/__failing_tests__/*.js'","build:flow":"flow-copy-source -v -i '**/__tests__/*.js' -i '**/__failing_tests__/*.js' src lib","copy-dts":"cpy src/index.d.ts lib","build":"npm run clean && npm run build:js && npm run build:flow && npm run copy-dts","prepublish":"npm run build"},"types":"lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/FormidableLabs/enzyme-matchers.git"},"keywords":["javascript","shallow rendering","shallowRender","test","reactjs","react","flux","testing","test utils","assertion helpers","tdd","jest","enzyme"],"bugs":{"url":"https://github.com/FormidableLabs/enzyme-matchers/issues"},"peerDependencies":{"enzyme":">=3.4.0","jest":">=22.0.0"},"dependencies":{"@alandeivson/enzyme-matchers":"^7.1.2","enzyme-to-json":"^3.3.0","@alandeivson/jest-environment-enzyme":"^8.0.0"},"devDependencies":{"@types/enzyme":"^3.1.11","@types/react":"^17.0.5","cpy-cli":"^2.0.0"},"jest":{"transform":{"^.+\\.js$":"../../babel-jest-root-mode-wrapper.js"},"roots":["<rootDir>/src"],"testEnvironment":"enzyme","testEnvironmentOptions":{"enzymeAdapter":"react17"},"setupFilesAfterEnv":["<rootDir>/src/index.js"],"testRegex":"/(__tests__|__failing_tests__)/.*\\.test\\.js$","transformIgnorePatterns":["<rootDir>/node_modules/(?!enzyme-matchers)"],"verbose":true},"_id":"@alandeivson/jest-enzyme@8.0.0","dist":{"shasum":"db5035cacea6741f7f4930b271f3fdff6bb9ac82","integrity":"sha512-AkXj2VRq+op/XJTNcgoLLqjPt9KAoWiA80kQcdJYnfVNbwhXCbHe7emjq0F21A5B32Z+pNSh9Rfh2qVtGmcQjw==","tarball":"https://registry.npmjs.org/@alandeivson/jest-enzyme/-/jest-enzyme-8.0.0.tgz","fileCount":7,"unpackedSize":24484,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgktDeCRA9TVsSAnZWagAAjVAP/RHzyf2Nsol7bWTSuzgl\nVh1xEWIBhQMje51kKUqIWsov7M2M57pvPH1oxsdrbkrnYLgaAHy5zODomw5F\nODYrt/s7pXRy+nb5juSiWJ7MFOIePI/FEZJkGZKC/6EMbI/0OL2Y8Uyc9Wlz\n6/7jtZcZM+k0D83KtyteLW/vYZcKwdXRIkbyoq9Lxl6gJYGJM3GozT3zQ7c0\n74Y9FVpKo/0F6IbdX1UxDi3+LBfF7eqFUx2/iVWfYkbMwm87NeTZOjipEZ8R\nma1R/YlXGFFp7IowwHj8wdtris4dNbzSQyBWCQHIZBqazkC9UF1Nnczux848\neMkG0jPr2yG7Vqp9cy9Gxzib/dIh1p8yGah5lVQjkBbDqHvRqZXECbRR2cHM\nOHuc5onmX9JUQ9inQVZZHWnur8Ux9XD+AB9YGbPji1xjvXhr894H0NykJghO\nHjuFx3mTkGCdSDof0PPGqQvhA1YwdNLb58D+mqMTLkF83hI2ZE3EGYecXdbd\nliQ8s17xk2cKADCglY6p/Y95eoh+81f6W+x8nJxIKy8UAiTPlnQvVMPI/JTq\nGzwnCUVOqJuFQDMN/ABGOhUtY7Cu4g4tEppAw0mKelIsiPwGxD7phIU7X8nK\nNjwsNCtHg32IyNp6MtvU7yR+aTBMHvYq7GqAYcMr5HIlS18j3Q0CC/iHhbgT\nJLf0\r\n=tcGh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCDT6ZCrX4TjTal5jbkFUl/mIyNXZo58qe/qLDENNrDWQIhAIm6ACrCgfYZwnyHYa5luDYkZgvBIHckRnoMKt3YVp9B"}]},"_npmUser":{"name":"alandeivson","email":"alandeivsonlug@gmail.com"},"directories":{},"maintainers":[{"name":"alandeivson","email":"alandeivsonlug@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jest-enzyme_8.0.0_1620234461919_0.16872984090957344"},"_hasShrinkwrap":false},"8.1.0":{"name":"@alandeivson/jest-enzyme","version":"8.1.0","description":"Testing Matchers for Enzyme","main":"lib/index.js","author":{"name":"Blaine Kasten","email":"blainekasten@gmail.com"},"license":"MIT","homepage":"https://github.com/FormidableLabs/enzyme-matchers/blob/master/packages/jest-enzyme#readme","scripts":{"pretest":"node ../../scripts/jest.js","test":"node ../../node_modules/jest-cli/bin/jest.js __tests__","failing:test":"node ../../node_modules/jest-cli/bin/jest.js __failing_tests__","jest":"node ../../node_modules/jest-cli/bin/jest.js __tests__","lint":"eslint ./src","clean":"rm -rf ./lib","build:js":"babel --root-mode upward src --out-dir lib --ignore '**/__tests__/*.js' --ignore '**/__failing_tests__/*.js'","build:flow":"flow-copy-source -v -i '**/__tests__/*.js' -i '**/__failing_tests__/*.js' src lib","copy-dts":"cpy src/index.d.ts lib","build":"npm run clean && npm run build:js && npm run build:flow && npm run copy-dts","prepublish":"npm run build"},"types":"lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/FormidableLabs/enzyme-matchers.git"},"keywords":["javascript","shallow rendering","shallowRender","test","reactjs","react","flux","testing","test utils","assertion helpers","tdd","jest","enzyme"],"bugs":{"url":"https://github.com/FormidableLabs/enzyme-matchers/issues"},"peerDependencies":{"enzyme":">=3.4.0","jest":">=22.0.0"},"dependencies":{"@alandeivson/enzyme-matchers":"8.0.0","enzyme-to-json":"^3.3.0","@alandeivson/jest-environment-enzyme":"^8.0.0"},"devDependencies":{"@types/enzyme":"^3.1.11","@types/react":"^17.0.5","cpy-cli":"^2.0.0"},"jest":{"transform":{"^.+\\.js$":"../../babel-jest-root-mode-wrapper.js"},"roots":["<rootDir>/src"],"testEnvironment":"enzyme","testEnvironmentOptions":{"enzymeAdapter":"react17"},"setupFilesAfterEnv":["<rootDir>/src/index.js"],"testRegex":"/(__tests__|__failing_tests__)/.*\\.test\\.js$","transformIgnorePatterns":["<rootDir>/node_modules/(?!enzyme-matchers)"],"verbose":true},"_id":"@alandeivson/jest-enzyme@8.1.0","dist":{"shasum":"005f2130dbd6f7f53cce2d503cf98fd400960d4d","integrity":"sha512-CM11yILJYezIAoyb4hlFaORSn+/KOOYeoX5B9nO4hN3p3b79xpsdw4PSE581HnLX4XMPvXDZoBH7kdwuQ0d3QQ==","tarball":"https://registry.npmjs.org/@alandeivson/jest-enzyme/-/jest-enzyme-8.1.0.tgz","fileCount":7,"unpackedSize":24483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgktHxCRA9TVsSAnZWagAAxSoQAIi7k5+sO5KNNukzCyK+\nmeEIeZrDG8BeDeu19MnvH+M2tFPbgjh2LCBbQTwD1L22WlzEsEDQYv91NBaA\nDcT7WsuGsn82GECrNQNwgLvodoqT/2zqoD6gUm1gqFtPPdsljNQcHAmVxChu\nTz1NX8q8ceNs9q5NksoDr6CwCd6+UxGb/Rj+nH6FNPu30KeQFe3NllcrAQPR\nEJuN6qpY55K1ChXKIh8WC/S2Yoc+bR5a1UA2Vp/Ytc4XCiNb1zljJec902MG\nsM3QAQU2NwH1ObaM5oNb4XqniYhKbUEyc7v0hX0/mgLcWf7iBgqZlPTzg+wK\nH2Fa34btT0eKIFMNYFbj/+DrHDIQQijU7Wp0fRe1ij/qbqRKcldGKeZrkZA1\n+yVIpElTgZ9sdopnA8HnbnP4hJkpt6wIDIPeHohQmlxVVJyuzsdxstBb14Y2\nZ6J9NJnNtQhLUc3rQsU/bYt6s9PHdY266dAiee3LiKi8lHU2XnvHTExIxbZx\n5N0k+UWW4W1t/K8RY5IXwR5Jh7AbW1hGalBaGXISidZZfbOd2fEHWLIZRs6i\nKCDdrHpzG5Z+fxRxzn1vsz6Ecg57fiU56+lLgIXJg4b21MAxASlrp/Jbs3lp\ndq18Madk6E/KMrMwkhdxuCt2+xF2ErnEe7EFPCGYECwxWNUMAcK8g5BpF7y+\n43uc\r\n=9gxm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB6PQhc2P+PxMCKOVax84nERL87JAvqPCubsBFl852beAiBRU+IxkEszhvn+2EsmA/iP5NRU28JaDXBX7ODgPzgTbg=="}]},"_npmUser":{"name":"alandeivson","email":"alandeivsonlug@gmail.com"},"directories":{},"maintainers":[{"name":"alandeivson","email":"alandeivsonlug@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jest-enzyme_8.1.0_1620234737138_0.02022667760689134"},"_hasShrinkwrap":false},"8.1.1":{"name":"@alandeivson/jest-enzyme","version":"8.1.1","description":"Testing Matchers for Enzyme","main":"lib/index.js","author":{"name":"Blaine Kasten","email":"blainekasten@gmail.com"},"license":"MIT","homepage":"https://github.com/FormidableLabs/enzyme-matchers/blob/master/packages/jest-enzyme#readme","scripts":{"pretest":"node ../../scripts/jest.js","test":"node ../../node_modules/jest-cli/bin/jest.js __tests__","failing:test":"node ../../node_modules/jest-cli/bin/jest.js __failing_tests__","jest":"node ../../node_modules/jest-cli/bin/jest.js __tests__","lint":"eslint ./src","clean":"rm -rf ./lib","build:js":"babel --root-mode upward src --out-dir lib --ignore '**/__tests__/*.js' --ignore '**/__failing_tests__/*.js'","build:flow":"flow-copy-source -v -i '**/__tests__/*.js' -i '**/__failing_tests__/*.js' src lib","copy-dts":"cpy src/index.d.ts lib","build":"npm run clean && npm run build:js && npm run build:flow && npm run copy-dts","prepublish":"npm run build"},"types":"lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/FormidableLabs/enzyme-matchers.git"},"keywords":["javascript","shallow rendering","shallowRender","test","reactjs","react","flux","testing","test utils","assertion helpers","tdd","jest","enzyme"],"bugs":{"url":"https://github.com/FormidableLabs/enzyme-matchers/issues"},"peerDependencies":{"enzyme":">=3.4.0","jest":">=22.0.0"},"dependencies":{"@alandeivson/enzyme-matchers":"8.0.0","@alandeivson/jest-environment-enzyme":"^8.0.0","enzyme-to-json":"^3.3.0"},"devDependencies":{"@types/enzyme":"^3.1.11","@types/react":"^17.0.5","cpy-cli":"^2.0.0"},"jest":{"transform":{"^.+\\.js$":"../../babel-jest-root-mode-wrapper.js"},"roots":["<rootDir>/src"],"testEnvironment":"enzyme","testEnvironmentOptions":{"enzymeAdapter":"react17"},"setupFilesAfterEnv":["<rootDir>/src/index.js"],"testRegex":"/(__tests__|__failing_tests__)/.*\\.test\\.js$","transformIgnorePatterns":["<rootDir>/node_modules/(?!enzyme-matchers)"],"verbose":true},"_id":"@alandeivson/jest-enzyme@8.1.1","dist":{"shasum":"a6a88c5bf897b9fcc0cf88dea60ba90061c15468","integrity":"sha512-rVfF1q7L6olYvSWUETQLX6gwDlDG5EBUkRWq087p6CeC3++OdDTQIENOP+48JsdRc25sJh6P3gw0eYsbnMByKw==","tarball":"https://registry.npmjs.org/@alandeivson/jest-enzyme/-/jest-enzyme-8.1.1.tgz","fileCount":7,"unpackedSize":24535,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgktSQCRA9TVsSAnZWagAAL9YQAJsCCGc3nlGdPFTHhwQi\ncDDfucSjkbrFX+snGY1Ga7op65sdRVMHaSVs9jNOaflq4uVioMoAiNYptAfU\nlw+66g1/ZmiObaLgUbSR84yTpogT0Cz5BE5AHX+M+GRR2oiG1ODH7kRKq1bn\n+ooHwjCWqQa6Q2BOX8glNT5mai0mxbqa6RCKWkDFiOe4IWV6Mb2kXZf8LbUJ\nQliB6BhlK1vLKCh/80qBSBXWVJ12uPdy3NtP7xdoujwwIznA5TA7xSY8rOf3\nJQUTnJmoY1tJllghJiKPUZQaGX7DxqsMlCskTf11jXPp+PkVbXIwfb8PnGJJ\n/+TXMyqKwFQpqeaTg3D8s2EA9IClPw+kxmrjl3vvVqYPA7JwsNlA9vS9X/dF\ngDAEINmY3TtyJA0RIzIicQZdVaDbDt7MfrUkWmJeClb4e52uwAUgx0y9mJfs\nC27S8Eoa1gZDTZoGBei8JmiYu+TdvSWlpkb8ieZFlfNXGiQhKTXxx4AQnT24\nqedOmUeVObBoNCAZj4U+SJ96Mi8I7AH+8iUcB/9X+e7o5RK+JTXUJ9JkL/wT\nlPTzE6N4Ez24Am1uMV7WTEO7kaKV5g4rAMRmkxFUaLdg2xe9XI7pOuIEx5H9\nW6cMCbRXqEsYcjOSxyyppcMLty1wo+DbuvAeYCVeKgaG4x8FnZWahAi9xc8t\nkkCY\r\n=uWLU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIQCGoVkWMlfJzfpDaq4vM7vJzV3N2IeHnOoPGvlQmnN4eQIfQU2osqh+lgscDOYzrqdeNFJ6+DCpkhMzrQ6KtB4ToA=="}]},"_npmUser":{"name":"alandeivson","email":"alandeivsonlug@gmail.com"},"directories":{},"maintainers":[{"name":"alandeivson","email":"alandeivsonlug@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jest-enzyme_8.1.1_1620235407775_0.10854400008898812"},"_hasShrinkwrap":false},"8.1.3":{"name":"@alandeivson/jest-enzyme","version":"8.1.3","description":"Testing Matchers for Enzyme","main":"lib/index.js","author":{"name":"Blaine Kasten","email":"blainekasten@gmail.com"},"license":"MIT","homepage":"https://github.com/FormidableLabs/enzyme-matchers/blob/master/packages/jest-enzyme#readme","scripts":{"pretest":"node ../../scripts/jest.js","test":"node ../../node_modules/jest-cli/bin/jest.js __tests__","failing:test":"node ../../node_modules/jest-cli/bin/jest.js __failing_tests__","jest":"node ../../node_modules/jest-cli/bin/jest.js __tests__","lint":"eslint ./src","clean":"rm -rf ./lib","build:js":"babel --root-mode upward src --out-dir lib --ignore '**/__tests__/*.js' --ignore '**/__failing_tests__/*.js'","build:flow":"flow-copy-source -v -i '**/__tests__/*.js' -i '**/__failing_tests__/*.js' src lib","copy-dts":"cpy src/index.d.ts lib","build":"npm run clean && npm run build:js && npm run build:flow && npm run copy-dts","prepublish":"npm run build"},"types":"lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/FormidableLabs/enzyme-matchers.git"},"keywords":["javascript","shallow rendering","shallowRender","test","reactjs","react","flux","testing","test utils","assertion helpers","tdd","jest","enzyme"],"bugs":{"url":"https://github.com/FormidableLabs/enzyme-matchers/issues"},"peerDependencies":{"enzyme":">=3.4.0","jest":">=22.0.0"},"dependencies":{"@alandeivson/enzyme-matchers":"^8.1.3","@alandeivson/jest-environment-enzyme":"^8.1.3","enzyme-to-json":"^3.3.0"},"devDependencies":{"@types/enzyme":"^3.1.11","@types/react":"^17.0.5","cpy-cli":"^2.0.0"},"jest":{"transform":{"^.+\\.js$":"../../babel-jest-root-mode-wrapper.js"},"roots":["<rootDir>/src"],"testEnvironment":"enzyme","testEnvironmentOptions":{"enzymeAdapter":"react17"},"setupFilesAfterEnv":["<rootDir>/src/index.js"],"testRegex":"/(__tests__|__failing_tests__)/.*\\.test\\.js$","transformIgnorePatterns":["<rootDir>/node_modules/(?!enzyme-matchers)"],"verbose":true},"directories":{"lib":"lib"},"gitHead":"78bf24c5042678d553fb007e1e8cc1e95400a83c","_id":"@alandeivson/jest-enzyme@8.1.3","_nodeVersion":"12.17.0","_npmVersion":"lerna/3.22.1/node@v12.17.0+x64 (linux)","dist":{"integrity":"sha512-gnQNfqpIslRdigfKo7u5I8EnVb6tYWq9SHAnTXP9f3lOc6wREsaCwuvHhpUBm8lAhVJWQgcAnXfyfZ/mfiTI+g==","shasum":"c6720ed3794d53fbc1e0e0d68907d4fc4064e4c2","tarball":"https://registry.npmjs.org/@alandeivson/jest-enzyme/-/jest-enzyme-8.1.3.tgz","fileCount":6,"unpackedSize":25680,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgktr4CRA9TVsSAnZWagAAMkMQAJbJZEOwOeujhsW0XzCU\nOioH0xwGlf+0SJ0HBM4c5pNNr0o8nSHGQNm1oJ3GMjhFR7u7WymwXrsD/EON\n/H0TaqdKx4CcioC9nvoCkMLletJDf9FeOx2jaMGdRjbHWGj/qqOSkQ8zPR2L\nQfogoSWDZXLnKUu6NeKz5/5MWg4xnImEM+cZjGA5FseUVb2tjSlm2+NICbmZ\nVZSjBwiCpa2ahlp5S1IoEU5UNKnpIYeW1Yq7fZMCb6cSQ+SmmfM5Smwr7rww\niEi0BqtP+BnSHiOroxhNa6/D71aZE6uakf8iSJ517KxsATvGkUDgLYsJj7UA\nfDDElbzqeB51SrTvfYkMvOYJHHfM3Z3qC7g9wMAelPaJ8vzCq6FmqSB9ZwyM\n/Jo+NoHhkdb2vyoMz2BWhdT/v4sk068XWufgSj+xnMAy+eI4Xida4uEkTB5O\nUVQmzNit/pAJOdBY5w9v1/GuMA3nFLHDP+t7kXWX5up/QAUjxfZF2iJhYX7d\nl7ho4QAH9k+VATJweoSTxlTHnUVTlmkeMiue7VKe+/EFvYGLDvGPvs3yCusR\nAUHwFskNioHOQ8saxZZGvd4UVgrTm3OIT3zYtlEOeBdnepIOoXM2X623dLMS\nfIn9QsRHAfPcMvcnmknAkXVyL6lbmzK6r/5BhfE3kwQsLRTJ5vamajlqHTdW\nkJNM\r\n=rfAI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC56/0nX9f0VSXqiykG+Lgn+oWS81Fiaqubl6JurVbARAIhAM3O7SVLJ9eEcBB/tPPEPwnPVF29FWXF/hMKbd7ymh3C"}]},"_npmUser":{"name":"alandeivson","email":"alandeivsonlug@gmail.com"},"maintainers":[{"name":"alandeivson","email":"alandeivsonlug@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jest-enzyme_8.1.3_1620237048116_0.7532856782887807"},"_hasShrinkwrap":false}},"time":{"created":"2021-05-05T17:07:41.861Z","8.0.0":"2021-05-05T17:07:42.035Z","modified":"2022-04-04T12:33:02.524Z","8.1.0":"2021-05-05T17:12:17.270Z","8.1.1":"2021-05-05T17:23:27.924Z","8.1.3":"2021-05-05T17:50:48.244Z"},"maintainers":[{"name":"alandeivson","email":"alandeivsonlug@gmail.com"}],"description":"Testing Matchers for Enzyme","homepage":"https://github.com/FormidableLabs/enzyme-matchers/blob/master/packages/jest-enzyme#readme","keywords":["javascript","shallow rendering","shallowRender","test","reactjs","react","flux","testing","test utils","assertion helpers","tdd","jest","enzyme"],"repository":{"type":"git","url":"git+https://github.com/FormidableLabs/enzyme-matchers.git"},"author":{"name":"Blaine Kasten","email":"blainekasten@gmail.com"},"bugs":{"url":"https://github.com/FormidableLabs/enzyme-matchers/issues"},"license":"MIT","readme":"# jest-enzyme\n\n[![npm version](https://img.shields.io/npm/v/jest-enzyme.svg)](https://www.npmjs.com/package/jest-enzyme)\n![License](https://img.shields.io/npm/l/chai-enzyme.svg)\n\n**Quick Links**\n* [Setup](#setup)\n* [Assertions](#assertions)\n* [Jest Enzyme Environment](#jest-enzyme-environment)\n* [Create React App](#usage-with-create-react-app)\n* [TypeScript](#usage-with-typescript)\n\n### Setup\n\nThe best setup is to use our jest environment [`jest-environment-enzyme`](/packages/jest-environment-enzyme).\n\nIf you prefer not to use the environment, you can also do this:\n\n```js\n// package.json\n\"jest\": {\n  \"setupFilesAfterEnv\": ['./node_modules/jest-enzyme/lib/index.js'],\n}\n```\n\n### Assertions\n\n> * Not all assertions work with every rendering strategy.\n>   If you are wondering what rendering mechanism to use when, refer to\n>   [enzyme's documentation](https://github.com/airbnb/enzyme).\n\n* [toBeChecked()](#tobechecked)\n* [toBeDisabled()](#tobedisabled)\n* [toBeEmptyRender()](#tobeemptyrender)\n* [toExist()](#toexist)\n* [toContainMatchingElement()](#tocontainmatchingelement)\n* [toContainMatchingElements()](#tocontainmatchingelements)\n* [toContainExactlyOneMatchingElement()](#tocontainexactlyonematchingelement)\n* [toContainReact()](#tocontainreact)\n* [toHaveClassName()](#tohaveclassname)\n* [toHaveDisplayName()](#tohavedisplayname)\n* [toHaveHTML()](#tohavehtml)\n* [toHaveProp()](#tohaveprop)\n* [toHaveRef()](#tohaveref)\n* [toHaveState()](#tohavestate)\n* [toHaveStyle()](#tohavestyle)\n* [toHaveTagName()](#tohavetagname)\n* [toHaveText()](#tohavetext)\n* [toIncludeText()](#toincludetext)\n* [toHaveValue()](#tohavevalue)\n* [toMatchElement()](#tomatchelement)\n* [toMatchSelector()](#tomatchselector)\n\n#### `toBeChecked()`\n\n| render | mount | shallow |\n| -------|-------|-------- |\n| no     | yes   | yes     |\n\nWays to use this API:\n\n```js\nexpect().toBeChecked();\n```\n\nAssert that the given wrapper is checked:\n\n```js\nimport React from 'react'\nimport {mount, shallow} from 'enzyme'\n\nfunction Fixture() {\n  return (\n    <div>\n      <input id=\"checked\" defaultChecked />\n      <input id=\"not\" defaultChecked={false} />\n      <input id=\"tertiary\" defaultChecked checked={false} />\n    </div>\n  );\n}\n\nconst wrapper = mount(<Fixture />); // mount/render/shallow when applicable\n\nexpect(wrapper.find('#checked')).toBeChecked();\nexpect(wrapper.find('#not')).not.toBeChecked();\n```\n\n#### `toBeDisabled()`\n\n| render | mount | shallow |\n| -------|-------|-------- |\n| no     | yes   | yes     |\n\nWays to use this API:\n\n```js\nexpect().toBeDisabled();\n```\n\nAssert that the given wrapper is disabled:\n\n```js\nimport React from 'react'\nimport {mount, shallow} from 'enzyme'\n\nfunction Fixture() {\n  return (\n    <div>\n      <input id=\"disabled\" disabled />\n      <input id=\"not\"/>\n    </div>\n  );\n}\n\nconst wrapper = mount(<Fixture />); // mount/render/shallow when applicable\n\nexpect(wrapper.find('#disabled')).toBeDisabled();\nexpect(wrapper.find('#not')).not.toBeDisabled();\n```\n\n#### `toBeEmptyRender()`\n\n| render | mount | shallow |\n| -------|-------|-------- |\n| no     | yes   | yes     |\n\nWays to use this API:\n\n```js\nexpect().toBeEmptyRender();\n```\n\nAssert that the given wrapper has an empty render (`null` or `false`):\n\n```js\nfunction EmptyRenderFixture() {\n  return null;\n}\n\nfunction NonEmptyRenderFixture() {\n  return (\n    <div>\n      <EmptyRenderFixture />\n    </div>\n  );\n}\n\nconst wrapper = mount(<EmptyRenderFixture />); // mount/render/shallow when applicable\n\nexpect(wrapper.find('EmptyRenderFixture')).toBeEmptyRender();\nexpect(wrapper).not.toBeEmptyRender();\n```\n\n#### `toExist()`\n\n| render | mount | shallow |\n| -------|-------|-------- |\n| no     | yes   | yes     |\n\nWays to use this API:\n\n```js\nexpect().toExist();\n```\n\nAssert that the given enzyme wrapper has rendered content.\n\n```js\nfunction Fixture() {\n  return (\n    <div>\n      <span className=\"foo\" />\n      <span className=\"bar baz\" />\n    </div>\n  );\n}\n\nconst wrapper = mount(<Fixture />); // mount/render/shallow when applicable\n\nexpect(wrapper.find('span')).toExist();\nexpect(wrapper.find('ul')).not.toExist();\n```\n\n#### `toContainMatchingElement()`\n\n| render | mount | shallow |\n| -------|-------|-------- |\n| no     | yes   | yes     |\n\nWays to use this API:\n\n```js\nexpect().toContainMatchingElement('.foo');\n```\n\nAssert that the given wrapper contains at least one match for the given selector:\n\n```js\nfunction User(props) {\n  return (\n    <span className={props.className}>\n      User {props.index}\n    </span>\n  );\n}\n\nUser.propTypes = {\n  index: PropTypes.number.isRequired,\n  className: PropTypes.string,\n};\n\nfunction Fixture() {\n  return (\n    <div>\n      <ul>\n        <li>\n          <User index={1} className=\"userOne\" />\n        </li>\n        <li>\n          <User index={2} className=\"userTwo\" />\n        </li>\n      </ul>\n    </div>\n  );\n}\n\nconst wrapper = mount(<Fixture />); // mount/render/shallow when applicable\n\nexpect(wrapper).toContainMatchingElement('.userOne');\nexpect(wrapper).not.toContainMatchingElement('.userThree');\n```\n\n#### `toContainMatchingElements()`\n\n| render | mount | shallow |\n| -------|-------|-------- |\n| no     | yes   | yes     |\n\nWays to use this API:\n\n```js\nexpect().toContainMatchingElements(2, '.foo');\n```\n\nAssert that the given wrapper contains a given number of matches for the given selector:\n\n```js\nfunction User(props) {\n  return (\n    <span className={props.className}>\n      User {props.index}\n    </span>\n  );\n}\n\nUser.propTypes = {\n  index: PropTypes.number.isRequired,\n  className: PropTypes.string,\n};\n\nfunction Fixture() {\n  return (\n    <div>\n      <ul>\n        <li>\n          <User index={1} className=\"userOne\" />\n        </li>\n        <li>\n          <User index={2} className=\"userTwo\" />\n        </li>\n      </ul>\n    </div>\n  );\n}\n\nconst wrapper = mount(<Fixture />); // mount/render/shallow when applicable\n\nexpect(wrapper).toContainMatchingElements(2, 'User');\nexpect(wrapper).not.toContainMatchingElements(2, '.userTwo');\n```\n\n#### `toContainExactlyOneMatchingElement()`\n\n| render | mount | shallow |\n| -------|-------|-------- |\n| no     | yes   | yes     |\n\nWays to use this API:\n\n```js\nexpect().toContainExactlyOneMatchingElement('.foo');\n```\n\nAssert that the given wrapper contains exactly one match for the given selector:\n\n```js\nfunction User(props) {\n  return (\n    <span className={props.className}>\n      User {props.index}\n    </span>\n  );\n}\n\nUser.propTypes = {\n  index: PropTypes.number.isRequired,\n  className: PropTypes.string,\n};\n\nfunction Fixture() {\n  return (\n    <div>\n      <ul>\n        <li>\n          <User index={1} className=\"userOne\" />\n        </li>\n        <li>\n          <User index={2} className=\"userTwo\" />\n        </li>\n      </ul>\n    </div>\n  );\n}\n\nconst wrapper = mount(<Fixture />); // mount/render/shallow when applicable\n\nexpect(wrapper).toContainExactlyOneMatchingElement('.userOne');\nexpect(wrapper).not.toContainExactlyOneMatchingElement('User');\n```\n\n#### `toContainReact()`\n\n| render | mount | shallow |\n| -------|-------|-------- |\n| no     | yes   | yes     |\n\nWays to use this API:\n\n```js\nexpect().toContainReact(<div>foo</div>);\n```\n\nAssert that the given wrapper contains the provided react instance:\n\n```js\nclass User extends React.Component {\n  render () {\n    return (\n      <span>User {this.props.index}</span>\n    )\n  }\n}\n\nUser.propTypes = {\n  index: PropTypes.number.isRequired\n}\n\nclass Fixture extends React.Component {\n  render () {\n    return (\n      <div>\n        <ul>\n          <li><User index={1} /></li>\n          <li><User index={2} /></li>\n        </ul>\n      </div>\n    )\n  }\n}\n\nconst wrapper = mount(<Fixture />); // mount/render/shallow when applicable\n\nexpect(wrapper).toContainReact(<User index={1} />);\nexpect(wrapper).not.toContainReact(<User index={9000} />);\n```\n\n#### `toHaveClassName()`\n\n| render | mount | shallow |\n| -------|-------|-------- |\n| no     | yes   | yes     |\n\nWays to use this API:\n\n```js\nexpect().toHaveClassName('foo');\n```\n\nAssert that the given wrapper has the provided className:\n\n```js\nfunction Fixture() {\n  return (\n    <div>\n      <span className=\"foo\" />\n      <span className=\"bar baz\" />\n    </div>\n  );\n}\n\nconst wrapper = mount(<Fixture />); // mount/render/shallow when applicable\n\nexpect(wrapper.find('.foo')).toHaveClassName('foo');\nexpect(wrapper.find('.foo')).not.toHaveClassName('baz');\n\nexpect(wrapper.find('.bar')).toHaveClassName('bar baz');\nexpect(wrapper.find('.bar')).toHaveClassName('baz');\n```\n\n#### `toHaveDisplayName()`\n\n| render | mount | shallow |\n| -------|-------|-------- |\n| no     | yes   | yes     |\n\nWays to use this API:\n\n```js\nexpect().toHaveDisplayName('div');\n```\n\nAssert that the wrapper is of a certain tag type:\n\n```js\nfunction Fixture() {\n  return (\n    <div>\n      <span id=\"span\" />\n    </div>\n  );\n}\n\nconst wrapper = mount(<Fixture />);\n\nexpect(wrapper.find('#span')).toHaveDisplayName('span');\nexpect(wrapper.find('#span')).not.toHaveDisplayName('div');\n```\n\n#### `toHaveHTML()`\n\n| render | mount | shallow |\n| -------|-------|-------- |\n| no     | yes   | yes     |\n\nWays to use this API:\n\n```js\nexpect().toHaveHTML('<div>html</div>');\n```\n\n\nAssert that the given wrapper has the provided html:\n\n> **Note** Quotations are normalized.\n\n```js\nfunction Fixture() {\n  return (\n    <div id=\"root\">\n      <span id=\"child\">Test</span>\n    </div>\n  );\n}\n\nconst wrapper = mount(<Fixture />); // mount/render/shallow when applicable\n\nexpect(wrapper.find('#child')).toHaveHTML(\n  '<span id=\"child\">Test</span>'\n);\n```\n\n#### `toHaveProp()`\n\n| render | mount | shallow |\n| -------|-------|-------- |\n| no     | yes   | yes     |\n\nWays to use this API:\n\n```js\nexpect().toHaveProp('foo', 'value');\nexpect().toHaveProp('foo');\nexpect().toHaveProp({foo: 'value'});\n```\n\nAssert that the given wrapper has the provided propKey and associated value if specified:\n\n```js\nfunction User() { ... }\nUser.propTypes = {\n  foo: PropTypes.string,\n  bar: PropTypes.array,\n};\n\nfunction Fixture() {\n  return (\n    <div id=\"root\">\n      <User foo={'baz'} bar={[1,2,3]} />\n    </div>\n  );\n}\n\nconst wrapper = mount(<Fixture />); // mount/render/shallow when applicable\n\nexpect(wrapper.find(User)).toHaveProp('foo');\nexpect(wrapper.find(User)).toHaveProp('foo', 'baz');\n\nexpect(wrapper.find(User)).toHaveProp('bar');\nexpect(wrapper.find(User)).toHaveProp('bar', [1,2,3]);\n\nexpect(wrapper.find(User)).toHaveProp({\n  bar: [1, 2, 3],\n  foo: 'baz',\n});\n```\n\n#### `toHaveRef()`\n\n| render | mount | shallow |\n| -------|-------|-------- |\n| no     | yes   | yes     |\n\nWays to use this API:\n\n```js\nexpect().toHaveRef('foo');\n```\n\nAssert that the mounted wrapper has the provided ref:\n\n```js\nclass Fixture extends React.Component {\n  render() {\n    return (\n      <div>\n        <span ref=\"child\" />\n      </div>\n    );\n  }\n}\n\nconst wrapper = mount(<Fixture />);\n\nexpect(wrapper).toHaveRef('child');\nexpect(wrapper).not.toHaveRef('foo');\n```\n\n#### `toHaveState()`\n\n| render | mount | shallow |\n| -------|-------|-------- |\n| no     | yes   | yes     |\n\nWays to use this API:\n\n```js\nexpect().toHaveState('foo');\nexpect().toHaveState('foo', 'bar');\nexpect().toHaveState({ foo: 'bar' });\n```\n\nAssert that the component has the provided stateKey and optional value if specified:\n\n```js\nclass Fixture extends React.Component {\n  constructor() {\n    super();\n    this.state = {\n      foo: false,\n    };\n  }\n\n  render() {\n    return (\n      <div />\n    );\n  }\n}\n\nconst wrapper = mount(<Fixture />); // mount/render/shallow when applicable\n\nexpect(wrapper).toHaveState('foo');\nexpect(wrapper).toHaveState('foo', false);\nexpect(wrapper).toHaveState({ foo: false });\n```\n\n#### `toHaveStyle()`\n\n| render | mount | shallow |\n| -------|-------|-------- |\n| no     | yes   | yes     |\n\nWays to use this API:\n\n```js\nexpect().toHaveStyle('height');\nexpect().toHaveStyle('height', '100%');\nexpect().toHaveStyle({ height: '100%' });\n```\n\nAssert that the component has style of the provided key and value:\n\n```js\nfunction Fixture() {\n  const style1 = { height: '100%' };\n  const style2 = { flex: 8 };\n\n  return (\n    <div>\n      <span id=\"style1\" style={style1} />\n      <span id=\"style2\" style={style2} />\n    </div>\n  );\n}\n\nconst wrapper = mount(<Fixture />); // mount/render/shallow when applicable\n\nexpect(wrapper.find('#style1')).toHaveStyle('height', '100%');\nexpect(wrapper.find('#style2')).toHaveStyle('flex', 8);\n```\n\n\n#### `toHaveTagName()`\n\n**Deprecated:** Matcher `toHaveTagName` is deprecated. Use the replacement, [`toHaveDisplayName()`](#tohavedisplayname) instead.\n\n\n#### `toHaveText()`\n\n| render | mount | shallow |\n| -------|-------|-------- |\n| no     | yes   | yes     |\n\nWays to use this API:\n\n```js\nexpect().toHaveText('bar');\n```\n\nAssert that the wrapper's text matches the provided text exactly, using a strict comparison (`===`).\n\n```js\nfunction Fixture() {\n  return (\n    <div>\n      <p id=\"full\">Text</p>\n      <p id=\"empty\"></p>\n    </div>\n  );\n}\n\nconst wrapper = mount(<Fixture />); // mount/render/shallow when applicable\n\nexpect(wrapper.find('#full')).toHaveText('Text');\nexpect(wrapper.find('#full')).not.toHaveText('Wrong');\n\nexpect(wrapper.find('#full')).toHaveText();\nexpect(wrapper.find('#empty')).not.toHaveText();\n```\n\n#### `toIncludeText()`\n\n| render | mount | shallow |\n| -------|-------|-------- |\n| no     | yes   | yes     |\n\nWays to use this API:\n\n```js\nexpect().toIncludeText('bar');\n```\n\nAssert that the wrapper includes the provided text:\n\n```js\nfunction Fixture() {\n  return (\n    <div>\n      <p id=\"full\">Some important text</p>\n    </div>\n  );\n}\n\nconst wrapper = mount(<Fixture />); // mount/render/shallow when applicable\n\nexpect(wrapper.find('#full')).toIncludeText('important');\nexpect(wrapper.find('#full')).not.toIncludeText('Wrong');\n```\n\n#### `toHaveValue()`\n\n| render | mount | shallow |\n| -------|-------|-------- |\n| no     | yes   | yes     |\n\nWays to use this API:\n\n```js\nexpect().toHaveValue('bar');\n```\n\nAssert that the given wrapper has the provided `value`:\n\n```js\nfunction Fixture() {\n  return (\n    <div>\n      <input defaultValue=\"test\" />\n      <input defaultValue=\"foo\" value=\"bar\" onChange={jest.genMockFunction()} />\n    </div>\n  );\n}\n\nconst wrapper = mount(<Fixture />); // mount/render/shallow when applicable\n\nexpect(wrapper.find('input').at(0)).toHaveValue('test');\nexpect(wrapper.find('input').at(1)).toHaveValue('bar');\n```\n\n#### `toMatchElement()`\n\n| render | mount | shallow |\n| -------|-------|-------- |\n| no     | yes   | yes     |\n\nWays to use this API:\n\n```js\nexpect().toMatchElement(<Foo />);\nexpect().toMatchElement(<Foo />, { ignoreProps: false });\nexpect().toMatchElement(<Foo />, { ignoreProps: false, verbose: false });\n```\n\nAssert the wrapper matches the provided react instance. This is a matcher form of Enzyme's wrapper.matchesElement(), which returns a bool with no indication of what caused a failed match. This matcher includes the actual and expected debug trees as contextual information when it fails. Like matchesElement(), props are ignored. If you want to compare prop values as well, pass `{ ignoreProps: false }` as options. Uses enzyme's [debug()](http://airbnb.io/enzyme/docs/api/ShallowWrapper/debug.html) under the hood and compares debug strings, which makes for a human readable diff when expects fail.\n\nExample:\n\n```js\nfunction Fixture() {\n  return (\n    <div>\n      <span id=\"foo\" className=\"bar\" />\n    </div>\n  );\n}\n\nconst wrapper = shallow(<Fixture />); // mount/render/shallow when applicable\n\nexpect(wrapper).toMatchElement(<Fixture />);\nexpect(wrapper.find('span')).toMatchElement(<span />);\nexpect(wrapper.find('span')).toMatchElement(\n  <span id=\"foo\" className=\"bar\" />,\n  { ignoreProps: false }\n);\nexpect(wrapper).not.toMatchElement(<div />);\n```\n\n#### `toMatchSelector()`\n\n| render | mount | shallow |\n| -------|-------|-------- |\n| no     | yes   | yes     |\n\nWays to use this API:\n\n```js\nexpect().toMatchSelector('.foo');\n```\n\nAssert that the wrapper matches the provided `selector`:\n\n```js\nfunction Fixture() {\n  return (\n    <div>\n      <span id=\"foo\" className=\"bar\" />\n    </div>\n  );\n}\n\nconst wrapper = mount(<Fixture />); // mount/render/shallow when applicable\n\nexpect(wrapper.find('span')).toMatchSelector('span');\nexpect(wrapper.find('span')).toMatchSelector('#foo');\nexpect(wrapper.find('span')).toMatchSelector('.bar');\n```\n\n### Jest Enzyme Environment\n\nThere is a special environment to simplify using enzyme with jest. Check it out [here](/packages/jest-environment-enzyme#readme)\n\n#### Usage with [Create React App](https://github.com/facebookincubator/create-react-app)\n\nIf you are using Create React App, instead of adding to your `package.json` as above, you will need to add a `src/setupTests.js` file to your app, to import jest-enzyme:\n\n ``` js\n // src/setupTests.js\n import 'jest-enzyme';\n ```\n\n This is documented on Create React App at the bottom of the [Testing Components](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#testing-components) section. There is also more information about [Initializing Test Environment](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#initializing-test-environment).\n\n#### Usage with TypeScript\n\nAs with Create React App, when using jest-enzyme with [TypeScript](http://typescriptlang.org/) and [ts-jest](https://github.com/kulshekhar/ts-jest), you'll need to add a `setupTests.ts` file to your app that explicitly imports jest-enzyme, and point the `setupFilesAfterEnv` field in your `package.json` file towards it:\n\n ``` typescript\n // src/setupTests.ts\n import 'jest-enzyme';\n ```\n \n ```js\n\"jest\": {\n  \"setupFilesAfterEnv\": [\"./src/setupTests.ts\"],\n},\n```\n\nThis ensures that the type definitions bundled with jest-enzyme (which add extra Jest matchers and globals like `shallow` and `mount`) are included in your TypeScript project.\n","readmeFilename":"README.md"}