{"_id":"jest-expo-enzyme","_rev":"115-728291b23fff31e68d3f6d53ce2ac444","name":"jest-expo-enzyme","dist-tags":{"latest":"1.5.0"},"versions":{"0.0.0-rc.0":{"name":"jest-expo-enzyme","version":"0.0.0-rc.0","license":"MIT","_id":"jest-expo-enzyme@0.0.0-rc.0","maintainers":[{"name":"tsapeta","email":"sapeta.tomasz@gmail.com"}],"homepage":"https://github.com/expo/expo/tree/master/packages/jest-expo-enzyme","bugs":{"url":"https://github.com/expo/expo/issues"},"dist":{"shasum":"9abbb82b8996645d5519b74cd08434bec38e3c31","tarball":"https://registry.npmjs.org/jest-expo-enzyme/-/jest-expo-enzyme-0.0.0-rc.0.tgz","fileCount":7,"integrity":"sha512-+2tlUfMnuJMksUKg9xzBv2NQuZxkVAr15T8ODZd70XITneBkeS+2md7p2Up2uoh4zaGdRe0f8seKe8Gw+I1J0g==","signatures":[{"sig":"MEYCIQDTaWR1Opbsot9dsisev34gQgHKh2sSLBwe129r76p3egIhAJGIaXkw3vvc4CMdnrqyYHPik1dtzQgfcxVKn8I0hRY1","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10419,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdfJq4CRA9TVsSAnZWagAAQsEQAKAaeuwVaxdQfxFzr9kt\ndOZj/FkPLCe7dZ4rxTWLteUYQLIZjPWbYR3lgqZnIoesK1fdnZHLHMTaAwto\nKNOl0m320jtqNpmR0tOFsydEHw2z9i1byG43k8NvupCO8P0/xYZYTr3ZTXOC\n4bRBsiULxgC1WCSrCFUpbEUII3d5gWhFwwZ7Knagq3wGinq8tdGe2uMGJiQJ\nUo3SprW+s3lluiimhPKhkICGrBJ7G1sxLYtw0v9LE2VwOLMnunIOzro7xtu5\nhIi89SYNkwa8IyYpkOwy4lal1lkZJUWN5XVa2tbEy2hxdqpfBxNjNouE4hCH\nSyr3MHlesSpPfG46k0c2qIwzuv9/EWeD/61bLXY7RKGoHHoKdc/9QRrOWMTb\n30D8mt3M6eDmlx2WFdejeLwlkJVVNvCwIE0U+P0PrbkmN+b+qPhz2Xz35DSu\neCWHcm+pKlv9Pia/rDRqH02e2KU1ou/x9J82rUGAuHzQdtMdSSf10QNcY3Ym\nesuiQ+mEM2gZp/zUHt5HBW4tgJ66U0J1C3yIovSRGrRoZ/fkA+3tITcncc7B\nGrWOzhz3rYC3iva3ZipC1/oQg+5OSecuTmdwLtIiw/VsAP/wAS1nvtCLSiuP\n5UFg0/zZ68RJmDNEqVGa6isDDp18EKwGUFmUnWsAHKa/6MwdQMJJvE/rQHr2\nQERQ\r\n=wNhi\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"preset":"jest-expo-enzyme"},"main":"src","gitHead":"5d4fcf318390f59cecd1ae5d191afb15488a4447","scripts":{"lint":"expo-module eslint src tests","test":"jest"},"_npmUser":{"name":"tsapeta","email":"sapeta.tomasz@gmail.com"},"repository":{"url":"git://github.com/expo/expo.git","type":"git","directory":"packages/jest-expo-enzyme"},"description":"A [Jest](https://facebook.github.io/jest/) preset that enables you to test your universal Expo & React elements with the [**Enzyme**](https://airbnb.io/enzyme/) testing library.","directories":{},"dependencies":{"chalk":"^2.4.2","enzyme":"^3.9.0","jest-expo":"~35.0.0-rc.0","jest-enzyme":"^7.1.0","enzyme-to-json":"^3.4.0","jest-canvas-mock":"^2.1.1","react-test-renderer":"~16.8.3","enzyme-adapter-react-16":"^1.12.1"},"_hasShrinkwrap":false,"devDependencies":{"react":"16.8.3","babel-preset-expo":"~7.0.0-rc.0"},"peerDependencies":{"react":"~16.8.3","react-native":"*","react-native-web":"*"},"_npmOperationalInternal":{"tmp":"tmp/jest-expo-enzyme_0.0.0-rc.0_1568447160248_0.3573191968843963","host":"s3://npm-registry-packages"}},"0.0.0":{"name":"jest-expo-enzyme","version":"0.0.0","license":"MIT","_id":"jest-expo-enzyme@0.0.0","maintainers":[{"name":"brentvatne","email":"brentvatne@gmail.com"},{"name":"ccheever","email":"ccheever@gmail.com"},{"name":"charliecruzan","email":"charliecruzan@gmail.com"},{"name":"dsokal","email":"dominiksokal@gmail.com"},{"name":"esamelson","email":"eric@expo.io"},{"name":"evanbacon","email":"baconbrix@gmail.com"},{"name":"expoadmin","email":"support@expo.io"},{"name":"fson","email":"ville.immonen@iki.fi"},{"name":"ide","email":"ide+npm@jameside.com"},{"name":"mczernek","email":"czernekmichal@gmail.com"},{"name":"quinlanj","email":"quinlanjung@gmail.com"},{"name":"sjchmiela","email":"sjchmiela@gmail.com"},{"name":"szymon20000","email":"szymon.kapala@swmansion.com"},{"name":"tsapeta","email":"sapeta.tomasz@gmail.com"}],"homepage":"https://github.com/expo/expo/tree/master/packages/jest-expo-enzyme","bugs":{"url":"https://github.com/expo/expo/issues"},"dist":{"shasum":"1b2941f317f42c5504f6d8631620210fa9ce4e98","tarball":"https://registry.npmjs.org/jest-expo-enzyme/-/jest-expo-enzyme-0.0.0.tgz","fileCount":7,"integrity":"sha512-eHSTyqgdtvacTTOIgQp6Z1nco5YQ1PmhzBAM1VfrlXnP6phV1Y9vjl1wPi5O1QZ1nx3kbo6crTQb1v0LesTk7g==","signatures":[{"sig":"MEUCIQCFHkyK1eXr+uGD3Y0kXvbsFI3SInXA4uxD6FiAwIRiQwIgKswGxjHiSObrIaFCYI3n+h0aLGYcFibmSL5IIpZ+Xxk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10404,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdg3/5CRA9TVsSAnZWagAAKbgQAIhqEoqsecpUq8EmfBrw\nm6otEcb6EQtGxNLOnaLno5FT9hXocYI1bq6PV7uw/XpoZiJUrmhOwwyS1kxy\nrVFAjqDExOnHdFx3iXRxQXz0cbR/fkUKlB2M9V5ov0/sjpzTXLahQAnUXkXe\nVp6HoK5BcUaVOmRd8SYODI7XQyvz2dsXHRRexiuY6cqkDnX//JlKiVZZo6HC\nuznCOrz647pSUKQ+ui7okfGb5+S3y2L9iBn9gsn0Rym76dkXZKu34hJZSLvj\nyLO2cvaXrBd7yAdeUQk0u8zOg+VlgeB/9tF8BBI4AwRgNMLRpzuyQX6GB/2c\nyYEDh80U9tuOZGC4v9R3H0tcQRVH3fS3lZnMupaZ+vpX+m4EK+YCw9IUAE/r\nqHs4x6IJxAQOU69r5pr2TsqPId2o5LG2ID7goUqdoHfnAv35GKgk5o6e3bVB\n50avbLRXunfGOjdRveGMYvYzTAXXK3p0yMPGDrfui1x21nb9+mWIP3elT7oE\nVoEuu9IalnlOK0OcfHuOcE6mM5Yfxy/dBnWDucjzJffHQk2W/3TY7xKgvJAP\nzlYzSzUpsvatBE/9+PMebeDYYq6YYGInRcY4M/orbEkKhYC8LcLcjfE8Nteg\ntpdTbZEDY6LaBrGK4RWZ9AI+NdqfoangT0TjvsuES+aO7cUD7zGsqaJsdEj0\ndQWo\r\n=zuq4\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"preset":"jest-expo-enzyme"},"main":"src","gitHead":"4e13b3cb88d9205f14bee7764038ab2dd9ef1fbd","scripts":{"lint":"expo-module eslint src tests","test":"jest"},"_npmUser":{"name":"tsapeta","email":"sapeta.tomasz@gmail.com"},"repository":{"url":"git://github.com/expo/expo.git","type":"git","directory":"packages/jest-expo-enzyme"},"description":"A [Jest](https://facebook.github.io/jest/) preset that enables you to test your universal Expo & React elements with the [**Enzyme**](https://airbnb.io/enzyme/) testing library.","directories":{},"dependencies":{"chalk":"^2.4.2","enzyme":"^3.9.0","jest-expo":"~35.0.0","jest-enzyme":"^7.1.0","enzyme-to-json":"^3.4.0","jest-canvas-mock":"^2.1.1","react-test-renderer":"~16.8.3","enzyme-adapter-react-16":"^1.12.1"},"_hasShrinkwrap":false,"devDependencies":{"react":"16.8.3","babel-preset-expo":"~7.0.0"},"peerDependencies":{"react":"~16.8.3","react-native":"*","react-native-web":"*"},"_npmOperationalInternal":{"tmp":"tmp/jest-expo-enzyme_0.0.0_1568899065019_0.7535089983821064","host":"s3://npm-registry-packages"}},"0.0.1":{"name":"jest-expo-enzyme","version":"0.0.1","keywords":["react-native","react-native-web","enzyme","jest","testing","react-test-renderer","react","universal"],"license":"MIT","_id":"jest-expo-enzyme@0.0.1","maintainers":[{"name":"bradbumbalough","email":"bradley.bumbalough@gmail.com"},{"name":"brentvatne","email":"brentvatne@gmail.com"},{"name":"ccheever","email":"ccheever@gmail.com"},{"name":"charliecruzan","email":"charliecruzan@gmail.com"},{"name":"dsokal","email":"dominiksokal@gmail.com"},{"name":"esamelson","email":"eric@expo.io"},{"name":"evanbacon","email":"baconbrix@gmail.com"},{"name":"expoadmin","email":"support@expo.io"},{"name":"exponent","email":"exponent.team@gmail.com"},{"name":"fson","email":"ville.immonen@iki.fi"},{"name":"ide","email":"ide+npm@jameside.com"},{"name":"mczernek","email":"czernekmichal@gmail.com"},{"name":"quinlanj","email":"quinlanjung@gmail.com"},{"name":"sjchmiela","email":"sjchmiela@gmail.com"},{"name":"szymon20000","email":"szymon.kapala@swmansion.com"},{"name":"tcdavis","email":"tc@expo.io"},{"name":"tsapeta","email":"sapeta.tomasz@gmail.com"},{"name":"wolewicki","email":"wojciech.lewicki@swmansion.com"}],"homepage":"https://github.com/expo/expo/tree/master/packages/jest-expo-enzyme","bugs":{"url":"https://github.com/expo/expo/issues"},"dist":{"shasum":"175a1eadce8a3fb0091e69f88bfbd9119a2b8a3f","tarball":"https://registry.npmjs.org/jest-expo-enzyme/-/jest-expo-enzyme-0.0.1.tgz","fileCount":19,"integrity":"sha512-kdAu2Rr4zErzaoT2PkmOGNHBOzyQJR38kjeKemRdNSHEv6Q1z3uhbdk/gMxZuPt172q4y4bdVCQLo6M0SBPm+g==","signatures":[{"sig":"MEUCIQDQtFAgSkUiAf3hyhN9MxODZj7DB95Hv4R0MRVfB8COJgIgDEcnXtEY+owJ+K7J1DH83QVsmRzebG9iQ7Ns1gS8obY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25922,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdyyDICRA9TVsSAnZWagAA3h0P/1qDaThkrX8IDUxl+uGD\nh9kYAPMkHnAqJHIR1COPSzf3CpFe4KZkBRb/H2Caq4S6jryeofGAyJ0HIaY2\nU67r/mts8jNmnuttlesXE91aUTECTGvE8tvTZDQDgs19o44ZceuGMSh4Lyth\n6M2kfeTIHnqgIeU2cuaYYefxnHVH8Q2EpPAD0NQEb0LggC7OZGB7B42yt8Mt\ncFcQzcIsZtmiSvyE7R0gdN3mo9DQS33GNxDHTEx7e6wECVSmNLxeJegQy6n4\ns3zn45VoA/p/K58/hql3CgJp1zoDVqzCEgOUpmxjJFIdLMTGZlnii6WnVWgs\n9Eht3JxzOW9vyKTMcJL3rsU2SRUdf+Oa3FiFkpu9GimmGEzGZMyV9Srd/fD3\npxQdO8gFZsvmBar6/Q9po5HOfqdTEhldOgBnOIaGrmthAU+uW11O64n8tzQF\nhPZZ5CDnnc09IoFE8y1mCoVb+IRvtBThJ80VMIqiafPmm8c3Mu/IMWK5L20B\nxHJrgCa7t39X0IoPl9uF0h38eImGdt7bVuofncTovjH1pwjIEZ+FnPHsJ06Q\nN6xqzqrJvAmhrz/GWRnx44ebWlVydAdiFQRI0lMLIe5Kg3oTsMtFWOB8P9/3\nhkJrGzhnJZdFyXre8ueomEGr5/kNkVbxWXjWMPWzjMvdDGsPbCSVi01d5gwb\nNe5b\r\n=Iep0\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"preset":"jest-expo-enzyme"},"main":"build/index.js","types":"build/index.d.ts","gitHead":"4e13b3cb88d9205f14bee7764038ab2dd9ef1fbd","scripts":{"lint":"expo-module lint","test":"expo-module test","build":"expo-module build","clean":"expo-module clean","prepare":"expo-module prepare","expo-module":"expo-module","prepublishOnly":"expo-module prepublishOnly"},"_npmUser":{"name":"evanbacon","email":"baconbrix@gmail.com"},"repository":{"url":"git://github.com/expo/expo.git","type":"git","directory":"packages/jest-expo-enzyme"},"_npmVersion":"6.9.0","description":"A [Jest](https://facebook.github.io/jest/) preset that enables you to test your universal Expo & React elements with the [**Enzyme**](https://airbnb.io/enzyme/) testing library.","directories":{},"sideEffects":true,"_nodeVersion":"10.16.3","dependencies":{"chalk":"^2.4.2","enzyme":"^3.9.0","jest-expo":"~35.0.0","jest-enzyme":"^7.1.0","enzyme-to-json":"^3.4.0","jest-canvas-mock":"^2.1.1","react-test-renderer":"~16.9.0","enzyme-adapter-react-16":"^1.12.1"},"_hasShrinkwrap":false,"devDependencies":{"react":"16.9.0","@types/enzyme":"^3.10.3","babel-preset-expo":"^7.1.0","expo-module-scripts":"^1.1.1","@types/enzyme-adapter-react-16":"^1.0.5"},"peerDependencies":{"react":"16.8.3","react-native":"*","react-native-web":"*"},"_npmOperationalInternal":{"tmp":"tmp/jest-expo-enzyme_0.0.1_1573593288175_0.09082056997336818","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"jest-expo-enzyme","version":"1.0.0","keywords":["react-native","react-native-web","enzyme","jest","testing","react-test-renderer","react","universal"],"license":"MIT","_id":"jest-expo-enzyme@1.0.0","maintainers":[{"name":"brentvatne","email":"brentvatne@gmail.com"},{"name":"ccheever","email":"ccheever@gmail.com"},{"name":"charliecruzan","email":"charliecruzan@gmail.com"},{"name":"dsokal","email":"dominiksokal@gmail.com"},{"name":"esamelson","email":"eric@expo.io"},{"name":"evanbacon","email":"baconbrix@gmail.com"},{"name":"expoadmin","email":"support@expo.io"},{"name":"exponent","email":"exponent.team@gmail.com"},{"name":"fson","email":"ville.immonen@iki.fi"},{"name":"ide","email":"ide+npm@jameside.com"},{"name":"mczernek","email":"czernekmichal@gmail.com"},{"name":"quinlanj","email":"quinlanjung@gmail.com"},{"name":"sjchmiela","email":"sjchmiela@gmail.com"},{"name":"tcdavis","email":"tc@expo.io"},{"name":"tsapeta","email":"sapeta.tomasz@gmail.com"},{"name":"wschurman","email":"wschurman@gmail.com"}],"homepage":"https://github.com/expo/expo/tree/master/packages/jest-expo-enzyme","bugs":{"url":"https://github.com/expo/expo/issues"},"dist":{"shasum":"086aca53c16b954d4b43ba66e00d18ad64f69d3a","tarball":"https://registry.npmjs.org/jest-expo-enzyme/-/jest-expo-enzyme-1.0.0.tgz","fileCount":19,"integrity":"sha512-cNV0dxDCIf75N2+Y2RbNsk13LAHUEoxHhOfm0ktmOf96twOwOkfeqFSgZfx1T5wKlIKXv2UKYu38k51ORr8Y6A==","signatures":[{"sig":"MEQCID6l1jNaQk9Xm6cOdTN1ak8F/yq3ydeW+NhE7TC1vjp+AiAnY/oTgXupRv9dpixHvOrpxRWWt0ndyyYuPSmI1imepA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25927,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeVC95CRA9TVsSAnZWagAASXUP/3A1ErbrQ9FXFXdL0RfU\nzRZcibMPjG0kjDorFljPQg/3ulIOdIcLem03/SQQXHE7AFBCIchkCFiao5WN\nNuYeEvaXO8oga1kDCVzE1yPI1PO0zIp3Uvj75OvMkMpfJdUhz9ZeczVNF0UE\nl20a+r+MpQKvYuz2Ogpptsk6xmhobvogDgxnucw8ZV1xi5Qpim6z+96B4HyQ\nu6pYtpPKEjjxjYxyYal46u8k4wWd8cSnXZcw0Dn0eYH/Jc8ZnUPMAJW1dI3I\nNu18rBzz8D6cdXRdsHpBJeQSPb8THJI2a3jRiinLy8xK4X9tI6mxZJGbM6CB\np5GUGpUW3BL5n9go87FFqi0U1/IO4d00ldQliAGz2Fr84YpwytCm48Nns/Qa\nr5azKjfiM47qW9G/i0PHAT4BziPxO4rps2rti2FRoCPMktB2LbRpqHZz2z99\niRymal1Bmx0nzJV3BMdyFROTHV5L5TXDhtwUQk1UEsqjFbRaPW6EIJoMm158\nNPI69BdoyvZonIXAH0MPFYBP5cHn98pELwSkNWCNlriDWT5U/mNR2J/cQPG1\nh0ftiT6ZzSLlUgYiw/KO1aaEAwv9LKHIUUsnaQ1gyVDfqppMaYRvshWfQbRm\na5pkSbOh/FWv+JFe7g6sxsK9nA2lx/oxEtziI9PA/IcT1em8Gxh6An1agszI\nXrai\r\n=mvv7\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"preset":"jest-expo-enzyme"},"main":"build/index.js","types":"build/index.d.ts","gitHead":"4e13b3cb88d9205f14bee7764038ab2dd9ef1fbd","scripts":{"lint":"expo-module lint","test":"expo-module test","build":"expo-module build","clean":"expo-module clean","prepare":"expo-module prepare","expo-module":"expo-module","prepublishOnly":"expo-module prepublishOnly"},"_npmUser":{"name":"charliecruzan","email":"charliecruzan@gmail.com"},"repository":{"url":"git://github.com/expo/expo.git","type":"git","directory":"packages/jest-expo-enzyme"},"_npmVersion":"6.11.3","description":"A [Jest](https://facebook.github.io/jest/) preset that enables you to test your universal Expo & React elements with the [**Enzyme**](https://airbnb.io/enzyme/) testing library.","directories":{},"sideEffects":true,"_nodeVersion":"10.17.0","dependencies":{"chalk":"^2.4.2","enzyme":"^3.9.0","jest-expo":"~36.0.1","jest-enzyme":"^7.1.0","enzyme-to-json":"^3.4.0","jest-canvas-mock":"^2.1.1","react-test-renderer":"~16.9.0","enzyme-adapter-react-16":"^1.12.1"},"_hasShrinkwrap":false,"devDependencies":{"react":"16.9.0","@types/enzyme":"^3.10.3","babel-preset-expo":"~8.0.0","expo-module-scripts":"~1.2.0","@types/enzyme-adapter-react-16":"^1.0.5"},"peerDependencies":{"react":"16.8.3","react-native":"*","react-native-web":"*"},"_npmOperationalInternal":{"tmp":"tmp/jest-expo-enzyme_1.0.0_1582575480786_0.2996607762437602","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"jest-expo-enzyme","version":"1.0.1","keywords":["react-native","react-native-web","enzyme","jest","testing","react-test-renderer","react","universal"],"license":"MIT","_id":"jest-expo-enzyme@1.0.1","maintainers":[{"name":"bbarthec","email":"bartlomiejbukowski.b@gmail.com"},{"name":"brentvatne","email":"brentvatne@gmail.com"},{"name":"ccheever","email":"ccheever@gmail.com"},{"name":"charliecruzan","email":"charliecruzan@gmail.com"},{"name":"dsokal","email":"dominiksokal@gmail.com"},{"name":"esamelson","email":"eric@expo.io"},{"name":"evanbacon","email":"baconbrix@gmail.com"},{"name":"expoadmin","email":"support@expo.io"},{"name":"exponent","email":"exponent.team@gmail.com"},{"name":"fson","email":"ville.immonen@iki.fi"},{"name":"ide","email":"ide+npm@jameside.com"},{"name":"ijzerenhein","email":"hrutjes@gmail.com"},{"name":"jkhales","email":"jonathan@expo.io"},{"name":"mczernek","email":"czernekmichal@gmail.com"},{"name":"quinlanj","email":"quinlanjung@gmail.com"},{"name":"sjchmiela","email":"sjchmiela@gmail.com"},{"name":"tcdavis","email":"tc@expo.io"},{"name":"tsapeta","email":"sapeta.tomasz@gmail.com"},{"name":"wkozyra","email":"wojciech.kozyra@swmansion.com"},{"name":"wschurman","email":"wschurman@gmail.com"}],"homepage":"https://github.com/expo/expo/tree/master/packages/jest-expo-enzyme","bugs":{"url":"https://github.com/expo/expo/issues"},"dist":{"shasum":"6578a501254406fe208977ad0cac4bdf9b1983a0","tarball":"https://registry.npmjs.org/jest-expo-enzyme/-/jest-expo-enzyme-1.0.1.tgz","fileCount":19,"integrity":"sha512-gJYRTHobufxAGabJ4YSfHfPs21UhF1Fq5ihyTB2IU6R6sW3SGWsVUZdLKvdypVfuWza+E57rUh95+pv6Z/WIbA==","signatures":[{"sig":"MEQCIAiWwOCRUQAEqIXpr+RaL6NBem8BQwgVIc4uwsVhZmvZAiBN7V3tAmdIWCOl5mJHV2sM8/Ab3JjjHQ0ezKpzafY8xQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26066,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJezo6dCRA9TVsSAnZWagAADvsQAJHqzMmya7FSU9bdg5Rv\nscrA0iPzdKoKkECsLYzO+OCz5oe4zehY5Z14Q+LEPSpa3M6Te2iN0FJr/qQG\nsVi+9xHwgcNG8yLhPBQJ7RW+tXKDBbfUMdU9QXkOclwx+qpOW8iDDMGICgIu\nkCCNKVbpnT9V9XlM6wvMjdyFymDcNZhH8/Ca1NfZ3FVqgihQgZ/NMueOh/Or\n7k5WnfXY/XMXFSCae6zeL5qBE/+cp3rGxQ6Ed8k3aC6wSYCisH7baL1fqgO5\nhN6b6bk2zGMBq1kss67rIwVKO1gvkxs57wmgMH6TBdxeNOYgUkiEUn/KHMbR\nrAYHwUyScyc8UnZAKjnSgNTa8DDjbWvfwsPbuKpSh0ee4LVveMhE3DiPhiQ8\nvpQfSPUnNmlOSBDQNMwU8DVzVfMnEgUwt1THvNEpfYh/yhhx1Pvb2teI+WpR\noM0CgFCz5HheBzl1fY00UphU7eWKflIW3U4y14SxiLQmn+QNYZR0vxcfam+r\nfu4pGt+qp2TCy/+MRMNEj9etp+jN8x10KGZrVsXQUua131H9YoOYiFFzM2Uy\nTriAygaRO7FYT5G6AGjM+7aSdJfbSMy/Bzs9pl7UIigfdJvp74mOdoftpZif\nHJvI4XlDRAqFI9uvltTs7Qul0xG6ksoJnR2MJ8C4BZVnjIRP3Zm3aQqvVJDL\ngfT/\r\n=nF6W\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"preset":"jest-expo-enzyme"},"main":"build/index.js","types":"build/index.d.ts","readme":"# jest-expo-enzyme\n\nA [Jest](https://facebook.github.io/jest/) preset that enables you to test your universal Expo & React elements with the [**Enzyme**](https://airbnb.io/enzyme/) testing library.\n\nThe default preset extends `jest-expo` which means it will run **iOS, Android, and web** platforms with the recommended Enzyme configs for web and native. Notice that we omit the `node` runner because SSR environments don't need to test how virtual DOM is rendered.\n\n## Installation\n\n- `yarn add jest-expo-enzyme --dev` or `npm i jest-expo-enzyme --save-dev`\n- Add the following config to `package.json`:\n\n  ```js\n  \"scripts\": {\n    \"test\": \"jest\",\n  },\n  \"jest\": {\n    \"preset\": \"jest-expo-enzyme\"\n  }\n  ```\n\n- Create a `__tests__` directory anywhere you like and a `Example-test.js` file inside of it, and add this code:\n\n  ```js\n  it('works', () => {\n    expect(1).toBe(1);\n  });\n  ```\n\n- Run `yarn test` or `npm test` and it should pass\n\n## Enzyme Example\n\nThe main benefit of using this preset is to get universal Enzyme support for testing your virtual DOM. Here is a basic example of testing how the `backgroundColor` property of a View style is rendered across iOS, Android, and web.\n\n```js\nimport { shallow } from 'enzyme';\nimport React from 'react';\nimport { View, StyleSheet, Platform } from 'react-native';\n\nit(`renders a view with a custom background`, () => {\n  const component = shallow(<View style={{ backgroundColor: 'rgba(0,0,0,0.5)' }} />);\n  // To debug your component use this:\n  console.log('Component:', component.debug({ verbose: true }));\n\n  // When snapshot testing, you should always try and be as concise as possible\n  // here we are extracting the style prop from `View` on native and `div` on web\n  const prop = component.find(Platform.select({ default: 'View', web: 'div' })).prop('style');\n\n  // Flatten the style so we can read it as an object\n  const style = StyleSheet.flatten(prop);\n\n  /**\n   * Android: exports[`renders a view with a custom background 1`] = `\"rgba(0,0,0,0.5)\"`;\n   * iOS: exports[`renders a view with a custom background 1`] = `\"rgba(0,0,0,0.5)\"`;\n   * web: exports[`renders a view with a custom background 1`] = `\"rgba(0,0,0,0.50)\"`;\n   */\n  expect(style.backgroundColor).toMatchSnapshot();\n});\n```\n\n## Customization\n\nWhen constructing your tests you will more than likely want to build them one platform at a time. To do this you'll want to create a `jest.config.js` with multiple platforms.\n\nThis is done by specifying a separate Jest config in the `projects` field of your custom Jest config. The `withEnzyme` method's purpose is to let you augment each single-platform Jest config with the configuration fields needed to support Enzyme.\n\nThis is why method `withEnzyme` exists.\n\nYou can use `withEnzyme` to add Enzyme support to an existing Jest config (**important:** this is only officially supported with Jest configs provided by `jest-expo`; mixing with other configs may not work as expected). Also use a custom serializer for the React Native **StyleSheet** API, which will make snapshot tests cleaner and easier to read.\n\n### Usage\n\n1. Create a `jest.config.js` in your root directory and delete the `jest` field in your `package.json`. You can also create any `js` file and pass it to the Jest CLI with the `-c` flag, ex: `yarn jest -c custom.config.js`.\n2. Import the platforms you want to test and add Enzyme support:\n\n```js\nconst { withEnzyme } = require('jest-expo-enzyme');\n\nmodule.exports = {\n  projects: [\n    // Skipping Node because we want to test DOM presets only\n    withEnzyme(require('jest-expo/ios/jest-preset')),\n    withEnzyme(require('jest-expo/android/jest-preset')),\n    // The Enzyme support added to web is different from that added to native, which `withEnzyme` handles\n    // Luckily you won't have to do anything special because it reads the platform from\n    // `haste.defaultPlatform` of the provided Jest config\n    withEnzyme(require('jest-expo/web/jest-preset')),\n  ],\n};\n```\n\n3. Run your tests with this new preset!\n\n### Snapshots\n\n`jest-expo-enzyme` wraps `jest-expo` which means you get access to the advanced multi-platform snapshot system required for truly testing your universal application code.\n\nHere is an example output:\n\n|- `View-test.tsx`\n|-- `__snapshots__/View-test.tsx.snap.android`\n|-- `__snapshots__/View-test.tsx.snap.ios`\n|-- `__snapshots__/View-test.tsx.snap.node`\n|-- `__snapshots__/View-test.tsx.snap.web`\n\n### Extensions\n\nTo test specific platforms you can use the following extensions:\n\n- iOS: `-test.ios.*`, `-test.native.*`\n- Android: `-test.android.*`, `-test.native.*`\n- web: `-test.web.*`\n- Node: `-test.node.*`, `-test.web.*`\n","gitHead":"dfc7fdb9aee4ef6fa10a9693e3d0935a2d500ae2","scripts":{"lint":"expo-module lint","test":"expo-module test","build":"expo-module build","clean":"expo-module clean","prepare":"expo-module prepare","expo-module":"expo-module","prepublishOnly":"expo-module prepublishOnly"},"_npmUser":{"name":"tsapeta","email":"sapeta.tomasz@gmail.com"},"repository":{"url":"git://github.com/expo/expo.git","type":"git","directory":"packages/jest-expo-enzyme"},"_npmVersion":"6.14.4","description":"A [Jest](https://facebook.github.io/jest/) preset that enables you to test your universal Expo & React elements with the [**Enzyme**](https://airbnb.io/enzyme/) testing library.","directories":{},"sideEffects":true,"_nodeVersion":"14.3.0","dependencies":{"chalk":"^2.4.2","enzyme":"^3.9.0","jest-expo":"~37.0.0","jest-enzyme":"^7.1.0","enzyme-to-json":"^3.4.0","jest-canvas-mock":"^2.1.1","react-test-renderer":"~16.11.0","enzyme-adapter-react-16":"^1.12.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"react":"16.11.0","@types/enzyme":"^3.10.3","babel-preset-expo":"~8.2.2","expo-module-scripts":"~1.2.0","@types/enzyme-adapter-react-16":"^1.0.5"},"peerDependencies":{"react":"16.8.3","react-native":"*","react-native-web":"*"},"_npmOperationalInternal":{"tmp":"tmp/jest-expo-enzyme_1.0.1_1590595229373_0.867458192373288","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"jest-expo-enzyme","version":"1.0.2","keywords":["react-native","react-native-web","enzyme","jest","testing","react-test-renderer","react","universal"],"license":"MIT","_id":"jest-expo-enzyme@1.0.2","maintainers":[{"name":"bbarthec","email":"bartlomiejbukowski.b@gmail.com"},{"name":"brentvatne","email":"brentvatne@gmail.com"},{"name":"ccheever","email":"ccheever@gmail.com"},{"name":"charliecruzan","email":"charliecruzan@gmail.com"},{"name":"dsokal","email":"dominiksokal@gmail.com"},{"name":"esamelson","email":"eric@expo.io"},{"name":"evanbacon","email":"baconbrix@gmail.com"},{"name":"expoadmin","email":"support@expo.io"},{"name":"exponent","email":"exponent.team@gmail.com"},{"name":"fson","email":"ville.immonen@iki.fi"},{"name":"ide","email":"ide+npm@jameside.com"},{"name":"ijzerenhein","email":"hrutjes@gmail.com"},{"name":"jkhales","email":"jonathan@expo.io"},{"name":"mczernek","email":"czernekmichal@gmail.com"},{"name":"quinlanj","email":"quinlanjung@gmail.com"},{"name":"sjchmiela","email":"sjchmiela@gmail.com"},{"name":"tcdavis","email":"tc@expo.io"},{"name":"tsapeta","email":"sapeta.tomasz@gmail.com"},{"name":"wkozyra","email":"wojciech.kozyra@swmansion.com"},{"name":"wschurman","email":"wschurman@gmail.com"}],"homepage":"https://github.com/expo/expo/tree/master/packages/jest-expo-enzyme","bugs":{"url":"https://github.com/expo/expo/issues"},"dist":{"shasum":"517c011091548be273062dca92f2a820a90a7e9e","tarball":"https://registry.npmjs.org/jest-expo-enzyme/-/jest-expo-enzyme-1.0.2.tgz","fileCount":19,"integrity":"sha512-mo38XILoQ1kEDQKExcWyZDGBgRj90aALua42F70Dl6alS676jCqgg0aLm7nWZmAtI+v47tHssPlz1ikVkdiloA==","signatures":[{"sig":"MEQCIEWW0wWVjhsoUhFzoQMuSdITCAZTU2S7BNH8JyUS0i5KAiB3DKm2AmK5ZP73PJTd6luefMkDpV/B8EGY6SdMdp8OwA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26066,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe0OiyCRA9TVsSAnZWagAAzSkQAIXT1K24ehHxEwQJ/TzW\nWBIRjzco06yibavcWmvKaP7z3RQthF2zJiQUyJ5Vvc8qmNIJ1wSmodfONs/R\nw/BoiYlfGw8vDsS0RAZ2cWfrkJwDvk4EbigLfLR4xSfsTFBaDOZ4gyP311Yi\nStG09U2NXt4FYIrUuYxVJ++O1REDfPQE0BaVCMoXBDt7CuXpfiX0ZmizYW+M\n2dF8k8q6AjcUYnWkZUjP5Dj/4apN8JLgfsXyl3qAT67tHPFR+F5+uqiHB/7L\nD7dNH4PM3xbdpjW4EUl3obfMyMW4EDZA2Y7dzgivEBfbCDbYJgfX+zFqz4Us\n86JLFei/jLI0sho52UlRnWF9+LGi9ONsBTRCcDQcw5o6M9jNS5w5Vuk7KVKi\nbOUO/SQf86Ezb/Xbo0w/Dppjx+hKbzBuqEbiVcXuUXg5J5ZmKEvt2N8IOlME\nP3EM4Amxd9Vao1QVa5g1aG+4/Pg/Gv9QzGD9H9005VPgOmt3QxU83P0GJaTA\nQ8dolPBoOWVpoSXDpO/jmY1KWMugGSesmgMFU6193fk+lCEnqs7mkYVUfpz0\n8AlZKXqzBPwpkeYHXyDYwm3AA38P9YEHbVjPv76VFBG2DabCf880xIua8p1s\nYB/rB80NF12s5xcQfberEv2D+909N37SJq+pKuq9iEwvx6io/Jzf2qtKU/tA\nnHe+\r\n=WF7l\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"preset":"jest-expo-enzyme"},"main":"build/index.js","types":"build/index.d.ts","gitHead":"1bc594b4a2f5154c335bdb35f984710a766d9199","scripts":{"lint":"expo-module lint","test":"expo-module test","build":"expo-module build","clean":"expo-module clean","prepare":"expo-module prepare","expo-module":"expo-module","prepublishOnly":"expo-module prepublishOnly"},"_npmUser":{"name":"tsapeta","email":"sapeta.tomasz@gmail.com"},"repository":{"url":"git://github.com/expo/expo.git","type":"git","directory":"packages/jest-expo-enzyme"},"_npmVersion":"6.14.4","description":"A [Jest](https://facebook.github.io/jest/) preset that enables you to test your universal Expo & React elements with the [**Enzyme**](https://airbnb.io/enzyme/) testing library.","directories":{},"sideEffects":true,"_nodeVersion":"14.3.0","dependencies":{"chalk":"^2.4.2","enzyme":"^3.9.0","jest-expo":"~37.0.0","jest-enzyme":"^7.1.0","enzyme-to-json":"^3.4.0","jest-canvas-mock":"^2.1.1","react-test-renderer":"~16.11.0","enzyme-adapter-react-16":"^1.12.1"},"_hasShrinkwrap":false,"devDependencies":{"react":"16.11.0","@types/enzyme":"^3.10.3","babel-preset-expo":"~8.2.3","expo-module-scripts":"~1.2.0","@types/enzyme-adapter-react-16":"^1.0.5"},"peerDependencies":{"react":"16.8.3","react-native":"*","react-native-web":"*"},"_npmOperationalInternal":{"tmp":"tmp/jest-expo-enzyme_1.0.2_1590749362587_0.4491541953160243","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"jest-expo-enzyme","version":"1.0.3","keywords":["react-native","react-native-web","enzyme","jest","testing","react-test-renderer","react","universal"],"license":"MIT","_id":"jest-expo-enzyme@1.0.3","maintainers":[{"name":"bbarthec","email":"bartlomiejbukowski.b@gmail.com"},{"name":"brentvatne","email":"brentvatne@gmail.com"},{"name":"bycedric","email":"me@bycedric.com"},{"name":"ccheever","email":"ccheever@gmail.com"},{"name":"charliecruzan","email":"charliecruzan@gmail.com"},{"name":"dsokal","email":"dominiksokal@gmail.com"},{"name":"esamelson","email":"eric@expo.io"},{"name":"evanbacon","email":"baconbrix@gmail.com"},{"name":"expoadmin","email":"support@expo.io"},{"name":"exponent","email":"exponent.team@gmail.com"},{"name":"fson","email":"ville.immonen@iki.fi"},{"name":"ide","email":"ide+npm@jameside.com"},{"name":"ijzerenhein","email":"hrutjes@gmail.com"},{"name":"jkhales","email":"jonathan@expo.io"},{"name":"mczernek","email":"czernekmichal@gmail.com"},{"name":"quinlanj","email":"quinlanjung@gmail.com"},{"name":"sjchmiela","email":"sjchmiela@gmail.com"},{"name":"tcdavis","email":"tc@expo.io"},{"name":"tsapeta","email":"sapeta.tomasz@gmail.com"},{"name":"wkozyra","email":"wojciech.kozyra@swmansion.com"},{"name":"wschurman","email":"wschurman@gmail.com"}],"homepage":"https://github.com/expo/expo/tree/master/packages/jest-expo-enzyme","bugs":{"url":"https://github.com/expo/expo/issues"},"dist":{"shasum":"18198848d12ef972e939c2f3c62f2f5c8c3b8e87","tarball":"https://registry.npmjs.org/jest-expo-enzyme/-/jest-expo-enzyme-1.0.3.tgz","fileCount":19,"integrity":"sha512-8gzZ2bcpsnn+wHwfJSZQue0CQ2x2sk353f9elDvmTRAXfVcn4Nn9XS5I0Ug8xy69W4bHo/hgxTSuJ3Q6k8l3iA==","signatures":[{"sig":"MEUCICjkrAvN/ddRFVN+XXwatbIiVaKOvTIMaLyE3jEDjbUBAiEAhrYKcru01EDA4hdJJWB8Z2ECBTvUCogXQEi1GODR2wI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26144,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfO+lACRA9TVsSAnZWagAAYHwP/A7ukE4b8+0akNz85Hxr\nVoZlQqoLVYbP/M5hntFKylGxjTgkh2cZRdTBlmV6/onIbkmEfpH8oaICl9MK\nvF+nDPCM9p8nxOA4EdoOSVcEZ0IqWru02NPkxkdzfGqNWtSOSi1I9h9qDvV1\nKlHcda1k0egIQXI9As/WrWB/XBnyiVW78xJwnG7j1VBJsa6/H698KTj35z3D\nTruvZ3nYCZMMsL+x87gNj5lDTFDLtpVyVBPySLj5mjOghZmhdA+h9AMFNrrl\nuF4NW4+3iTw/4G1ogJo2jQR+acEU841g7wwhUvegHDr/+ceNL+rQBQdaT+JE\nMfn5bTwhu+ssrKC8oqqS6rTWOGn5Pjv19N0IeJ/idd/04NZe00IKlx+vWvAd\n9w5JIM9TpoAr0cvnbTYVU01T0cHR5Zn8AELJHFmhIfCHZme9ry/Cl6ZaY3Pl\nbqUCWngPeAz9s/gw4I99AtRNhl6UYcUybEcBpZC7U/Raqh32dEn89f+mzfUw\nz4LxxGEumf4iTHDY4+kol5pem8W4adwxwncXTy6+ndR8IpF6z4Nbx/LqNSue\nT7gg6MZ7N8zGv2UslUwPftPQRWVF7Ui2ehdpv9OHUb3ak3MoiupTDjWVtBT8\nZk1zZRNj9WMcNG1YjaVLMsUokRRPrewDArdX+HPLIk16qsDnmT+m+J02zhuV\nZ9BF\r\n=+0KK\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"preset":"jest-expo-enzyme"},"main":"build/index.js","types":"build/index.d.ts","gitHead":"2196cebae55bda181ccceadec809942f51ee9e39","scripts":{"lint":"expo-module lint","test":"expo-module test","build":"expo-module build","clean":"expo-module clean","prepare":"expo-module prepare","expo-module":"expo-module","prepublishOnly":"expo-module prepublishOnly"},"_npmUser":{"name":"bbarthec","email":"bartlomiejbukowski.b@gmail.com"},"repository":{"url":"git://github.com/expo/expo.git","type":"git","directory":"packages/jest-expo-enzyme"},"_npmVersion":"6.13.4","description":"A Jest preset that enables you to test your universal Expo & React elements with the Enzyme testing library.","directories":{},"sideEffects":true,"_nodeVersion":"12.16.1","dependencies":{"chalk":"^2.4.2","enzyme":"~3.11.0","jest-expo":"~39.0.0","jest-enzyme":"~7.1.2","enzyme-to-json":"~3.5.0","jest-canvas-mock":"~2.2.0","react-test-renderer":"~16.11.0","enzyme-adapter-react-16":"~1.15.2"},"_hasShrinkwrap":false,"devDependencies":{"@types/enzyme":"^3.10.3","expo-module-scripts":"~1.2.0","@types/enzyme-adapter-react-16":"~1.0.6"},"peerDependencies":{"react":"16.13.1","react-native":"*","react-native-web":"~0.13.7"},"_npmOperationalInternal":{"tmp":"tmp/jest-expo-enzyme_1.0.3_1597761855587_0.48505289389660944","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"jest-expo-enzyme","version":"1.0.4","keywords":["react-native","react-native-web","enzyme","jest","testing","react-test-renderer","react","universal"],"license":"MIT","_id":"jest-expo-enzyme@1.0.4","maintainers":[{"name":"jonsamp","email":"sampjon@gmail.com"},{"name":"lukmccall","email":"kosmatylukasz@gmail.com"},{"name":"nikki93","email":"s.nikhilesh@gmail.com"},{"name":"bycedric","email":"me@bycedric.com"},{"name":"wkozyra","email":"wojciech.kozyra@swmansion.com"},{"name":"ijzerenhein","email":"hrutjes@gmail.com"},{"name":"jkhales","email":"jonathan@expo.io"},{"name":"bbarthec","email":"bartlomiejbukowski.b@gmail.com"},{"name":"wschurman","email":"wschurman@gmail.com"},{"name":"exponent","email":"exponent.team@gmail.com"},{"name":"tcdavis","email":"tc@expo.io"},{"name":"dsokal","email":"dominiksokal@gmail.com"},{"name":"sjchmiela","email":"sjchmiela@gmail.com"},{"name":"tsapeta","email":"npm@tsapeta.com"},{"name":"charliecruzan","email":"charliecruzan@gmail.com"},{"name":"mczernek","email":"czernekmichal@gmail.com"},{"name":"expoadmin","email":"support@expo.io"},{"name":"fson","email":"ville.immonen@iki.fi"},{"name":"esamelson","email":"eric@expo.io"},{"name":"quinlanj","email":"quinlanjung@gmail.com"},{"name":"evanbacon","email":"baconbrix@gmail.com"},{"name":"ccheever","email":"ccheever@gmail.com"},{"name":"brentvatne","email":"brentvatne@gmail.com"},{"name":"ide","email":"ide+npm@jameside.com"}],"homepage":"https://github.com/expo/expo/tree/master/packages/jest-expo-enzyme","bugs":{"url":"https://github.com/expo/expo/issues"},"dist":{"shasum":"29e7cd3a425de3378005d040c14238a5a3a01210","tarball":"https://registry.npmjs.org/jest-expo-enzyme/-/jest-expo-enzyme-1.0.4.tgz","fileCount":19,"integrity":"sha512-x8+XmwZ7ahKgTvTtjJM6nb74lsies6g5jatWO9XR8F5DrTVEmcWt13nAz3CHir3PjZ53bjNw0Y0kvUrJugqfMg==","signatures":[{"sig":"MEYCIQD6LB6bZfBWoJfHO7kiXRiZMEm5L2768k2IJy5HilYcBQIhANt/oLFMZuB5aQUfEM3Idcy47A6Q2fs85Ik2bUrkCC1o","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26151,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfs1lWCRA9TVsSAnZWagAAJxcP/jIQb6izg1/nmxlzfec3\no0YfdCW3BSgCUvjDKcnQWvaYooiWa0eYObaPfhSq9fcusJjjkBs4lm32NUhV\nlFNemXktPI4h6O6Jw1/HmkjeDTVRRTkv08QLfBX6yKYaO6BDFslzUvdHJzwK\n90m+TKcT8WnsohJdy+nDN/RnnNRoRSXeykKMd2/PzUCmrx65Vs+SRFityxhr\nJsnnukXTGlb9MeonIKOcWYYBrcG+QKF2C2+Mj/HwE9Uor8egS08AiKWqvLIa\nE6zbBJnVD9FP+6aZFL1ZK7vJ/rdoGcdIK1gX++THDVdmyT06Jawdkq10i9aC\nje/ksTLwIMlLB4NKsIYNhj1coGRrf5C8lynNLb+FrPCmOtKiv6dsXJ6t+Nsf\nM18XTNYIwr+TuzEF6kdj22MgZS+ueP6aiS8PXCzljpL9AqJIssr1D+53i0of\n3Yfx7HHt8JcflT8GBTqfDjHzAUaKvn+nMXYLK0LcxpL6k48fIH32ZXMGCKWn\nDaFsnFVnVLTsewSpHIyV8ybIBqx2WNAxDVMd4m3WnTjX2dbCthww24UXHn3X\nYrB9ee8TTUnaskViO4Cxu91fpSfkWm//O/hRUOo7+2N9sfEw3E28MYA9h8M9\nB2WkTcmJxXDWO8FJujiPeL3xl5AO34PMjajDZ/WvjfMCPJ8HOWzZnekbj5xA\nXn6J\r\n=NRNc\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"preset":"jest-expo-enzyme"},"main":"build/index.js","types":"build/index.d.ts","gitHead":"bc6b4b3bc3cb5e44e477f145c72c07ed09588651","scripts":{"lint":"expo-module lint","test":"expo-module test","build":"expo-module build","clean":"expo-module clean","prepare":"expo-module prepare","expo-module":"expo-module","prepublishOnly":"expo-module prepublishOnly"},"_npmUser":{"name":"brentvatne","email":"brentvatne@gmail.com"},"repository":{"url":"git://github.com/expo/expo.git","type":"git","directory":"packages/jest-expo-enzyme"},"_npmVersion":"6.14.8","description":"A Jest preset that enables you to test your universal Expo & React elements with the Enzyme testing library.","directories":{},"sideEffects":true,"_nodeVersion":"14.15.0","dependencies":{"chalk":"^2.4.2","enzyme":"~3.11.0","jest-expo":"~40.0.0-beta.0","jest-enzyme":"~7.1.2","enzyme-to-json":"~3.5.0","jest-canvas-mock":"~2.2.0","react-test-renderer":"~16.11.0","enzyme-adapter-react-16":"~1.15.2"},"_hasShrinkwrap":false,"devDependencies":{"@types/enzyme":"^3.10.3","expo-module-scripts":"~1.2.0","@types/enzyme-adapter-react-16":"~1.0.6"},"peerDependencies":{"react":"16.13.1","react-native":"*","react-native-web":"~0.13.7"},"_npmOperationalInternal":{"tmp":"tmp/jest-expo-enzyme_1.0.4_1605589333924_0.7979856013761149","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"jest-expo-enzyme","version":"1.1.0","keywords":["react-native","react-native-web","enzyme","jest","testing","react-test-renderer","react","universal"],"license":"MIT","_id":"jest-expo-enzyme@1.1.0","maintainers":[{"name":"ide","email":"ide+npm@jameside.com"},{"name":"brentvatne","email":"brentvatne@gmail.com"},{"name":"ccheever","email":"ccheever@gmail.com"},{"name":"evanbacon","email":"baconbrix@gmail.com"},{"name":"quinlanj","email":"quinlanjung@gmail.com"},{"name":"esamelson","email":"eric@expo.io"},{"name":"fson","email":"ville.immonen@iki.fi"},{"name":"expoadmin","email":"support@expo.io"},{"name":"mczernek","email":"czernekmichal@gmail.com"},{"name":"charliecruzan","email":"charliecruzan@gmail.com"},{"name":"tsapeta","email":"npm@tsapeta.com"},{"name":"sjchmiela","email":"sjchmiela@gmail.com"},{"name":"dsokal","email":"dominiksokal@gmail.com"},{"name":"tcdavis","email":"tc@expo.io"},{"name":"exponent","email":"exponent.team@gmail.com"},{"name":"wschurman","email":"wschurman@gmail.com"},{"name":"bbarthec","email":"bartlomiejbukowski.b@gmail.com"},{"name":"jkhales","email":"jonathan@expo.io"},{"name":"ijzerenhein","email":"hrutjes@gmail.com"},{"name":"wkozyra","email":"wojciech.kozyra@swmansion.com"},{"name":"bycedric","email":"me@bycedric.com"},{"name":"nikki93","email":"s.nikhilesh@gmail.com"},{"name":"lukmccall","email":"kosmatylukasz@gmail.com"},{"name":"jonsamp","email":"sampjon@gmail.com"}],"homepage":"https://github.com/expo/expo/tree/master/packages/jest-expo-enzyme","bugs":{"url":"https://github.com/expo/expo/issues"},"dist":{"shasum":"8fdb88c977deb62679868f0ad37a246f39b8e7e7","tarball":"https://registry.npmjs.org/jest-expo-enzyme/-/jest-expo-enzyme-1.1.0.tgz","fileCount":19,"integrity":"sha512-+xiKSYcqc9Bp/0L+hWZGQnfZFizNm1lFQGcUoAWVt8/EcUnr1OCyu2UEyjEvSzVapQ1uEUMUlqaMF+vyc/fwsQ==","signatures":[{"sig":"MEQCIGhgErqAk5feKOKaVZaYor+cN1SS5s3ctdPbq5ZkNzQOAiB0jBOL2Gz0zITUgJ7IDrxpW5NbTwniPSjmZo7CvhL7EA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26040,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSCSJCRA9TVsSAnZWagAASYYP/03ooCgoBKP6coIDMWpf\nFjCy5PrIPBVeSX1tcFJNxOSpGdJiIHTqsXN5npP/bItu+JG1KVe8gdOvqPPc\nI2/AXtT9Lt5U133SmnowiXrePBuPkDYTRPeyvKtMf44bio9IkUV4KbVXBV+T\nvAxn3xF6V57eY8Gf5V+u01UCr/J8QlR1rVbqNxd+VQ/aog3nVt1YiiQj6QY6\nGSwscpOjKDQXQsnHhOAyCmhz0nFE+rariHhEnbFUkjm8dVd9ygbqF1F7dEvq\nFl+S6zY6Omfpm4L2uUwpbMkpP+/CcDftZzlsOYJGgaV/xFBJjFuvrZzv+9v6\n0DQmCV+8hO7m+8c72b7rLcy3npBttSM0RlHe0WHSHD+qeaXcVGvN5ZKZsGc2\nc4mtZZhxV157M9VZ6C0ZqC+KTxeiosU5kNaxsK26N7x1aRGFHL6P5C2ahHYd\nvXGo01aELsfHiA95nZSP5OI/+sIlRDuXvM3Z9vdIzYojqsJwl8nQwz0ArL94\n8IZxv2tB9BbsCS7K8ImxCUHELEi1gPsrDYImUaGQgk6YbIeZtY+OFdFi+Dd7\nm4csc6JZjG1QewXsdBF+ICTE4LCIA+0855oXlJaShhXqwx1u8nLPDyWyRI5N\nNKuJEyTd3V8iaj/rvCSofUIcaklOZGxY/ulLlh7CynpfrrcDjymbp9QPl2wy\nVisz\r\n=WRGt\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"preset":"jest-expo-enzyme"},"main":"build/index.js","types":"build/index.d.ts","readme":"# jest-expo-enzyme\n\nA [Jest](https://facebook.github.io/jest/) preset that enables you to test your universal Expo & React elements with the [**Enzyme**](https://airbnb.io/enzyme/) testing library.\n\nThe default preset extends `jest-expo` which means it will run **iOS, Android, and web** platforms with the recommended Enzyme configs for web and native. Notice that we omit the `node` runner because SSR environments don't need to test how virtual DOM is rendered.\n\n## Installation\n\n- `yarn add jest-expo-enzyme --dev` or `npm i jest-expo-enzyme --save-dev`\n- Add the following config to `package.json`:\n\n  ```js\n  \"scripts\": {\n    \"test\": \"jest\",\n  },\n  \"jest\": {\n    \"preset\": \"jest-expo-enzyme\"\n  }\n  ```\n\n- Create a `__tests__` directory anywhere you like and a `Example-test.js` file inside of it, and add this code:\n\n  ```js\n  it('works', () => {\n    expect(1).toBe(1);\n  });\n  ```\n\n- Run `yarn test` or `npm test` and it should pass\n\n## Enzyme Example\n\nThe main benefit of using this preset is to get universal Enzyme support for testing your virtual DOM. Here is a basic example of testing how the `backgroundColor` property of a View style is rendered across iOS, Android, and web.\n\n```js\nimport { shallow } from 'enzyme';\nimport React from 'react';\nimport { View, StyleSheet, Platform } from 'react-native';\n\nit(`renders a view with a custom background`, () => {\n  const component = shallow(<View style={{ backgroundColor: 'rgba(0,0,0,0.5)' }} />);\n  // To debug your component use this:\n  console.log('Component:', component.debug({ verbose: true }));\n\n  // When snapshot testing, you should always try and be as concise as possible\n  // here we are extracting the style prop from `View` on native and `div` on web\n  const prop = component.find(Platform.select({ default: 'View', web: 'div' })).prop('style');\n\n  // Flatten the style so we can read it as an object\n  const style = StyleSheet.flatten(prop);\n\n  /**\n   * Android: exports[`renders a view with a custom background 1`] = `\"rgba(0,0,0,0.5)\"`;\n   * iOS: exports[`renders a view with a custom background 1`] = `\"rgba(0,0,0,0.5)\"`;\n   * web: exports[`renders a view with a custom background 1`] = `\"rgba(0,0,0,0.50)\"`;\n   */\n  expect(style.backgroundColor).toMatchSnapshot();\n});\n```\n\n## Customization\n\nWhen constructing your tests you will more than likely want to build them one platform at a time. To do this you'll want to create a `jest.config.js` with multiple platforms.\n\nThis is done by specifying a separate Jest config in the `projects` field of your custom Jest config. The `withEnzyme` method's purpose is to let you augment each single-platform Jest config with the configuration fields needed to support Enzyme.\n\nThis is why method `withEnzyme` exists.\n\nYou can use `withEnzyme` to add Enzyme support to an existing Jest config (**important:** this is only officially supported with Jest configs provided by `jest-expo`; mixing with other configs may not work as expected). Also use a custom serializer for the React Native **StyleSheet** API, which will make snapshot tests cleaner and easier to read.\n\n### Usage\n\n1. Create a `jest.config.js` in your root directory and delete the `jest` field in your `package.json`. You can also create any `js` file and pass it to the Jest CLI with the `-c` flag, ex: `yarn jest -c custom.config.js`.\n2. Import the platforms you want to test and add Enzyme support:\n\n```js\nconst { withEnzyme } = require('jest-expo-enzyme');\n\nmodule.exports = {\n  projects: [\n    // Skipping Node because we want to test DOM presets only\n    withEnzyme(require('jest-expo/ios/jest-preset')),\n    withEnzyme(require('jest-expo/android/jest-preset')),\n    // The Enzyme support added to web is different from that added to native, which `withEnzyme` handles\n    // Luckily you won't have to do anything special because it reads the platform from\n    // `haste.defaultPlatform` of the provided Jest config\n    withEnzyme(require('jest-expo/web/jest-preset')),\n  ],\n};\n```\n\n3. Run your tests with this new preset!\n\n### Snapshots\n\n`jest-expo-enzyme` wraps `jest-expo` which means you get access to the advanced multi-platform snapshot system required for truly testing your universal application code.\n\nHere is an example output:\n\n|- `View-test.tsx`\n|-- `__snapshots__/View-test.tsx.snap.android`\n|-- `__snapshots__/View-test.tsx.snap.ios`\n|-- `__snapshots__/View-test.tsx.snap.node`\n|-- `__snapshots__/View-test.tsx.snap.web`\n\n### Extensions\n\nTo test specific platforms you can use the following extensions:\n\n- iOS: `-test.ios.*`, `-test.native.*`\n- Android: `-test.android.*`, `-test.native.*`\n- web: `-test.web.*`\n- Node: `-test.node.*`, `-test.web.*`\n","gitHead":"5b57d1fd0a20294c1dec7c43b5df34dd6425d1a5","scripts":{"lint":"expo-module lint","test":"expo-module test","build":"expo-module build","clean":"expo-module clean","prepare":"expo-module prepare","expo-module":"expo-module","prepublishOnly":"expo-module prepublishOnly"},"_npmUser":{"name":"brentvatne","email":"brentvatne@gmail.com"},"repository":{"url":"git://github.com/expo/expo.git","type":"git","directory":"packages/jest-expo-enzyme"},"_npmVersion":"6.14.9","description":"A Jest preset that enables you to test your universal Expo & React elements with the Enzyme testing library.","directories":{},"sideEffects":true,"_nodeVersion":"14.15.2","dependencies":{"chalk":"^2.4.2","enzyme":"~3.11.0","jest-expo":"~41.0.0-alpha.0","jest-enzyme":"~7.1.2","enzyme-to-json":"~3.5.0","jest-canvas-mock":"~2.2.0","react-test-renderer":"~16.11.0","enzyme-adapter-react-16":"~1.15.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"@types/enzyme":"^3.10.3","expo-module-scripts":"^2.0.0","@types/enzyme-adapter-react-16":"~1.0.6"},"_npmOperationalInternal":{"tmp":"tmp/jest-expo-enzyme_1.1.0_1615340681198_0.3109055834237806","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"jest-expo-enzyme","version":"1.1.1","keywords":["react-native","react-native-web","enzyme","jest","testing","react-test-renderer","react","universal"],"license":"MIT","_id":"jest-expo-enzyme@1.1.1","maintainers":[{"name":"ide","email":"ide+npm@jameside.com"},{"name":"brentvatne","email":"brentvatne@gmail.com"},{"name":"ccheever","email":"ccheever@gmail.com"},{"name":"evanbacon","email":"baconbrix@gmail.com"},{"name":"quinlanj","email":"quinlanjung@gmail.com"},{"name":"esamelson","email":"eric@expo.io"},{"name":"fson","email":"ville.immonen@iki.fi"},{"name":"expoadmin","email":"support@expo.io"},{"name":"mczernek","email":"czernekmichal@gmail.com"},{"name":"charliecruzan","email":"charliecruzan@gmail.com"},{"name":"tsapeta","email":"npm@tsapeta.com"},{"name":"sjchmiela","email":"sjchmiela@gmail.com"},{"name":"dsokal","email":"dominiksokal@gmail.com"},{"name":"tcdavis","email":"tc@expo.io"},{"name":"exponent","email":"exponent.team@gmail.com"},{"name":"wschurman","email":"wschurman@gmail.com"},{"name":"bbarthec","email":"bartlomiejbukowski.b@gmail.com"},{"name":"jkhales","email":"jonathan@expo.io"},{"name":"ijzerenhein","email":"hrutjes@gmail.com"},{"name":"wkozyra","email":"wojciech.kozyra@swmansion.com"},{"name":"bycedric","email":"me@bycedric.com"},{"name":"nikki93","email":"s.nikhilesh@gmail.com"},{"name":"lukmccall","email":"kosmatylukasz@gmail.com"},{"name":"jonsamp","email":"sampjon@gmail.com"}],"homepage":"https://github.com/expo/expo/tree/master/packages/jest-expo-enzyme","bugs":{"url":"https://github.com/expo/expo/issues"},"dist":{"shasum":"b97bce6a9513b4498c953b5c1248f55db74dd519","tarball":"https://registry.npmjs.org/jest-expo-enzyme/-/jest-expo-enzyme-1.1.1.tgz","fileCount":19,"integrity":"sha512-wcEGq1/8MuKGzIY3jsnb5PM1uy79raEKKojpXQRQd50DpZoCjjjIiBVBOHGrx3MTSGEEke1RP7arzA300yqZmA==","signatures":[{"sig":"MEUCIAnP2nnWEEXQy57GGQQB4mpyHCJEHGPfGUqEGAQ66aMoAiEA5MSI+hF4PFiXY5Xtf7RLec86tll65ql8VpXq6ZeEJ1o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26039,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgZlTUCRA9TVsSAnZWagAAQlcP/1Vp051j7Fo1Mke9rlRR\n/QRfkNjdYq+gRpuR0PSoCwWlw9ooW87HORJrggOraSuWNZyklDRRC/sV8A5b\nwNONogNYbMr0a3nrDTPgUIhQ4VLXUTVU0agNhRHAvdPk0RpnG4wUEGuJ03oC\nGSsYNKO+h6WFfEqELGcisGcBCzl5/SzfuVYqYa/nYmgogrrIj8G1sx4mmBcQ\nPfLzklPtssysDU0tMUnKL2ZNpu9AvB5iaRmllHoOvKALaqSRiSEc0o6sIXpt\nEBiQVub/JgMjXpK7T+ybxiGiEsSUdXBxt9SzUcMZSvoLBJNo7WP88xYzy+pe\nyj0in5SMG41Sg8B5iGSEv9qmlMMPEOePL6Csle95azQ2PM4gwqpKCXUYzszr\nd3A0rhhB0bkKmUVXxy+W/+SILEjzqe+4+cTXAQ/oMxvUJjNtd7O4nE+4jQzv\nWT+kp/O+Un54MvopEsVoZ+n4aOsmfWR3XFTihsLXQq6aH5EPV7oLwhiukmAO\n5NyvJPYxJyeylMSNFZz59XM/sonrNsX+/p7EmWGbzjydhhUOolcZcuw8tLtB\n9bqwgD6qUAm7BI3XhJ7NO6VFzIFmIrh/2bl5pBMrZcwm+8/Y2Xzpb9mzqVvn\n5LdgMfZ3y9iig4ywhB/ZewusoMXvh2uhgZcMFdXOkG5YQk10HrIJGhjbCb9e\nfBLD\r\n=SagJ\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"preset":"jest-expo-enzyme"},"main":"build/index.js","types":"build/index.d.ts","readme":"# jest-expo-enzyme\n\nA [Jest](https://facebook.github.io/jest/) preset that enables you to test your universal Expo & React elements with the [**Enzyme**](https://airbnb.io/enzyme/) testing library.\n\nThe default preset extends `jest-expo` which means it will run **iOS, Android, and web** platforms with the recommended Enzyme configs for web and native. Notice that we omit the `node` runner because SSR environments don't need to test how virtual DOM is rendered.\n\n## Installation\n\n- `yarn add jest-expo-enzyme --dev` or `npm i jest-expo-enzyme --save-dev`\n- Add the following config to `package.json`:\n\n  ```js\n  \"scripts\": {\n    \"test\": \"jest\",\n  },\n  \"jest\": {\n    \"preset\": \"jest-expo-enzyme\"\n  }\n  ```\n\n- Create a `__tests__` directory anywhere you like and a `Example-test.js` file inside of it, and add this code:\n\n  ```js\n  it('works', () => {\n    expect(1).toBe(1);\n  });\n  ```\n\n- Run `yarn test` or `npm test` and it should pass\n\n## Enzyme Example\n\nThe main benefit of using this preset is to get universal Enzyme support for testing your virtual DOM. Here is a basic example of testing how the `backgroundColor` property of a View style is rendered across iOS, Android, and web.\n\n```js\nimport { shallow } from 'enzyme';\nimport React from 'react';\nimport { View, StyleSheet, Platform } from 'react-native';\n\nit(`renders a view with a custom background`, () => {\n  const component = shallow(<View style={{ backgroundColor: 'rgba(0,0,0,0.5)' }} />);\n  // To debug your component use this:\n  console.log('Component:', component.debug({ verbose: true }));\n\n  // When snapshot testing, you should always try and be as concise as possible\n  // here we are extracting the style prop from `View` on native and `div` on web\n  const prop = component.find(Platform.select({ default: 'View', web: 'div' })).prop('style');\n\n  // Flatten the style so we can read it as an object\n  const style = StyleSheet.flatten(prop);\n\n  /**\n   * Android: exports[`renders a view with a custom background 1`] = `\"rgba(0,0,0,0.5)\"`;\n   * iOS: exports[`renders a view with a custom background 1`] = `\"rgba(0,0,0,0.5)\"`;\n   * web: exports[`renders a view with a custom background 1`] = `\"rgba(0,0,0,0.50)\"`;\n   */\n  expect(style.backgroundColor).toMatchSnapshot();\n});\n```\n\n## Customization\n\nWhen constructing your tests you will more than likely want to build them one platform at a time. To do this you'll want to create a `jest.config.js` with multiple platforms.\n\nThis is done by specifying a separate Jest config in the `projects` field of your custom Jest config. The `withEnzyme` method's purpose is to let you augment each single-platform Jest config with the configuration fields needed to support Enzyme.\n\nThis is why method `withEnzyme` exists.\n\nYou can use `withEnzyme` to add Enzyme support to an existing Jest config (**important:** this is only officially supported with Jest configs provided by `jest-expo`; mixing with other configs may not work as expected). Also use a custom serializer for the React Native **StyleSheet** API, which will make snapshot tests cleaner and easier to read.\n\n### Usage\n\n1. Create a `jest.config.js` in your root directory and delete the `jest` field in your `package.json`. You can also create any `js` file and pass it to the Jest CLI with the `-c` flag, ex: `yarn jest -c custom.config.js`.\n2. Import the platforms you want to test and add Enzyme support:\n\n```js\nconst { withEnzyme } = require('jest-expo-enzyme');\n\nmodule.exports = {\n  projects: [\n    // Skipping Node because we want to test DOM presets only\n    withEnzyme(require('jest-expo/ios/jest-preset')),\n    withEnzyme(require('jest-expo/android/jest-preset')),\n    // The Enzyme support added to web is different from that added to native, which `withEnzyme` handles\n    // Luckily you won't have to do anything special because it reads the platform from\n    // `haste.defaultPlatform` of the provided Jest config\n    withEnzyme(require('jest-expo/web/jest-preset')),\n  ],\n};\n```\n\n3. Run your tests with this new preset!\n\n### Snapshots\n\n`jest-expo-enzyme` wraps `jest-expo` which means you get access to the advanced multi-platform snapshot system required for truly testing your universal application code.\n\nHere is an example output:\n\n|- `View-test.tsx`\n|-- `__snapshots__/View-test.tsx.snap.android`\n|-- `__snapshots__/View-test.tsx.snap.ios`\n|-- `__snapshots__/View-test.tsx.snap.node`\n|-- `__snapshots__/View-test.tsx.snap.web`\n\n### Extensions\n\nTo test specific platforms you can use the following extensions:\n\n- iOS: `-test.ios.*`, `-test.native.*`\n- Android: `-test.android.*`, `-test.native.*`\n- web: `-test.web.*`\n- Node: `-test.node.*`, `-test.web.*`\n","gitHead":"58483c5ec15ae7ed7faba45b68993be5117685db","scripts":{"lint":"expo-module lint","test":"expo-module test","build":"expo-module build","clean":"expo-module clean","prepare":"expo-module prepare","expo-module":"expo-module","prepublishOnly":"expo-module prepublishOnly"},"_npmUser":{"name":"brentvatne","email":"brentvatne@gmail.com"},"repository":{"url":"git://github.com/expo/expo.git","type":"git","directory":"packages/jest-expo-enzyme"},"_npmVersion":"6.14.12","description":"A Jest preset that enables you to test your universal Expo & React elements with the Enzyme testing library.","directories":{},"sideEffects":true,"_nodeVersion":"14.15.2","dependencies":{"chalk":"^2.4.2","enzyme":"~3.11.0","jest-expo":"~41.0.0-beta.0","jest-enzyme":"~7.1.2","enzyme-to-json":"~3.5.0","jest-canvas-mock":"~2.2.0","react-test-renderer":"~16.11.0","enzyme-adapter-react-16":"~1.15.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"@types/enzyme":"^3.10.3","expo-module-scripts":"^2.0.0","@types/enzyme-adapter-react-16":"~1.0.6"},"_npmOperationalInternal":{"tmp":"tmp/jest-expo-enzyme_1.1.1_1617319123741_0.30446604953663514","host":"s3://npm-registry-packages"}},"1.1.2":{"name":"jest-expo-enzyme","version":"1.1.2","keywords":["react-native","react-native-web","enzyme","jest","testing","react-test-renderer","react","universal"],"license":"MIT","_id":"jest-expo-enzyme@1.1.2","maintainers":[{"name":"ide","email":"ide+npm@jameside.com"},{"name":"brentvatne","email":"brentvatne@gmail.com"},{"name":"ccheever","email":"ccheever@gmail.com"},{"name":"evanbacon","email":"baconbrix@gmail.com"},{"name":"quinlanj","email":"quinlanjung@gmail.com"},{"name":"esamelson","email":"eric@expo.io"},{"name":"fson","email":"ville.immonen@iki.fi"},{"name":"expoadmin","email":"support@expo.io"},{"name":"mczernek","email":"czernekmichal@gmail.com"},{"name":"charliecruzan","email":"charliecruzan@gmail.com"},{"name":"tsapeta","email":"npm@tsapeta.com"},{"name":"sjchmiela","email":"sjchmiela@gmail.com"},{"name":"dsokal","email":"dominiksokal@gmail.com"},{"name":"tcdavis","email":"tc@expo.io"},{"name":"exponent","email":"exponent.team@gmail.com"},{"name":"wschurman","email":"wschurman@gmail.com"},{"name":"bbarthec","email":"bartlomiejbukowski.b@gmail.com"},{"name":"jkhales","email":"jonathan@expo.io"},{"name":"ijzerenhein","email":"hrutjes@gmail.com"},{"name":"wkozyra","email":"wojciech.kozyra@swmansion.com"},{"name":"bycedric","email":"me@bycedric.com"},{"name":"nikki93","email":"s.nikhilesh@gmail.com"},{"name":"lukmccall","email":"kosmatylukasz@gmail.com"},{"name":"jonsamp","email":"sampjon@gmail.com"}],"homepage":"https://github.com/expo/expo/tree/master/packages/jest-expo-enzyme","bugs":{"url":"https://github.com/expo/expo/issues"},"dist":{"shasum":"bfe8433b1cc6a4529af4c07e75fea69a5b7d6dad","tarball":"https://registry.npmjs.org/jest-expo-enzyme/-/jest-expo-enzyme-1.1.2.tgz","fileCount":19,"integrity":"sha512-3UzAcZu/jYDX0Spr9486Je8fyGug61r7FMcVLV4vBLuyDg2WNgjNyQbOOjp5IMH4S2RLlzBsuQPzSG7imWtePw==","signatures":[{"sig":"MEUCIEMtLDgJR2/Gd5yBfVfMeaqivKYH6VlvU/yHitKasumYAiEAx3BmKIpiajKnoWoTFeuXh6tFjC2J2XNyNd8ix3txsSI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26039,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgdfgcCRA9TVsSAnZWagAAzt0P/2rIQvjZ0rD6r2keWMWm\nyIgmTcX6wY0uCJMYmVLYxkmw8/PIITwKc8Z/7P1XjyfO+DnithyttentKT+G\n/ovA8Ft5U7qB+R3zJb+epHrEwt6WsD6+rSIRJHnyCZEUUAhVfRYyWDsHtsJJ\nOrUlLQ0VoMxcXEgkT08k+QopARdOGEdfz1Tw8smPNqxOYMc1Otam/ELBe+J5\nibu5ljOMkjbiX4CdBKWxlVuOWY0pjojLHxpBMIM9Bw9q81Rgn23JTrtPDbjg\n86vDQ9DFfgsGOyYaXvi5PQ3a9v4V9lZJqabWRSpqXUlGcToA6svCwFY+6s23\njBWNwlpLDB+Lg9sTdmg3wC+860NbT0TZ3YfxAFpsgaF0m52874B7ssRVKy4d\nfgVgIEZ7iO4Rbi469FXnZjb2m5JEDIeSvca5PdtVqQhrR2SrnV0idExMOMMk\nT0+TQDMXbm7791Vu3JYJwXTanbkNDwhgbGZlz4XEvlkVyvTlZyPN/5OS8F/h\n3i/It9gtH1aJ76t5mDGuc969I/q75syHKP0U60QLwM7jlik8ZiYeG1NWj/LU\nfI62N05H76ksCzaz5nRnlUCAHPmOYZ31zWvy5WvLxr94SRg7rGyRI9IOGfiz\n6+SSXrM1VG/FvLu7OloLmoeL4+ol/dwZpg47SLgLg6hONOxvFnMvmDX39LME\ndZrQ\r\n=Vm3Z\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"preset":"jest-expo-enzyme"},"main":"build/index.js","types":"build/index.d.ts","gitHead":"9c6693e1e8997dd279d408b0f6e6490897713085","scripts":{"lint":"expo-module lint","test":"expo-module test","build":"expo-module build","clean":"expo-module clean","prepare":"expo-module prepare","expo-module":"expo-module","prepublishOnly":"expo-module prepublishOnly"},"_npmUser":{"name":"brentvatne","email":"brentvatne@gmail.com"},"repository":{"url":"git://github.com/expo/expo.git","type":"git","directory":"packages/jest-expo-enzyme"},"_npmVersion":"6.14.12","description":"A Jest preset that enables you to test your universal Expo & React elements with the Enzyme testing library.","directories":{},"sideEffects":true,"_nodeVersion":"14.15.2","dependencies":{"chalk":"^2.4.2","enzyme":"~3.11.0","jest-expo":"~41.0.0-beta.0","jest-enzyme":"~7.1.2","enzyme-to-json":"~3.5.0","jest-canvas-mock":"~2.2.0","react-test-renderer":"~16.11.0","enzyme-adapter-react-16":"~1.15.2"},"_hasShrinkwrap":false,"devDependencies":{"@types/enzyme":"^3.10.3","expo-module-scripts":"^2.0.0","@types/enzyme-adapter-react-16":"~1.0.6"},"_npmOperationalInternal":{"tmp":"tmp/jest-expo-enzyme_1.1.2_1618343963872_0.15693336050467654","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"jest-expo-enzyme","version":"1.2.0","keywords":["react-native","react-native-web","enzyme","jest","testing","react-test-renderer","react","universal"],"license":"MIT","_id":"jest-expo-enzyme@1.2.0","maintainers":[{"name":"haydendaly","email":"haydencdaly@gmail.com"},{"name":"kudochien","email":"ckchien@gmail.com"},{"name":"andyboythekid","email":"andydevs123@gmail.com"},{"name":"princefleaswallow","email":"mhampton@hey.com"},{"name":"ide","email":"ide+npm@jameside.com"},{"name":"brentvatne","email":"brentvatne@gmail.com"},{"name":"ccheever","email":"ccheever@gmail.com"},{"name":"evanbacon","email":"baconbrix@gmail.com"},{"name":"quinlanj","email":"quinlanjung@gmail.com"},{"name":"esamelson","email":"eric@expo.io"},{"name":"fson","email":"ville.immonen@iki.fi"},{"name":"expoadmin","email":"support@expo.io"},{"name":"charliecruzan","email":"charliecruzan@gmail.com"},{"name":"tsapeta","email":"npm@tsapeta.com"},{"name":"dsokal","email":"dominiksokal@gmail.com"},{"name":"tcdavis","email":"tc@expo.io"},{"name":"exponent","email":"exponent.team@gmail.com"},{"name":"wschurman","email":"wschurman@gmail.com"},{"name":"bbarthec","email":"bartlomiejbukowski.b@gmail.com"},{"name":"jkhales","email":"jonathan@expo.io"},{"name":"wkozyra","email":"wojciech.kozyra@swmansion.com"},{"name":"bycedric","email":"me@bycedric.com"},{"name":"lukmccall","email":"kosmatylukasz@gmail.com"},{"name":"jonsamp","email":"sampjon@gmail.com"}],"homepage":"https://github.com/expo/expo/tree/master/packages/jest-expo-enzyme","bugs":{"url":"https://github.com/expo/expo/issues"},"dist":{"shasum":"0fa43aa8f7167fbdb9e29250570b189c29b45a61","tarball":"https://registry.npmjs.org/jest-expo-enzyme/-/jest-expo-enzyme-1.2.0.tgz","fileCount":19,"integrity":"sha512-EdcTj3IDMl5uVIPOYNGmcVtV2+msiwQc5epvnbAmwDrlsziUiB9iTEdsYEigmQ2PHwYAPcv/0WvDQXYbyJbomQ==","signatures":[{"sig":"MEUCIQDeusHrqMTGyckoReGUcXIxDbcNL5sF0kCt9h2FpZyeaAIgE8bR/Q6/XBCelBXVa1NcYiHjmsXix0MR5EEnZJUDv3Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgylGlCRA9TVsSAnZWagAAT/YP/ArsuvbpajOnFBz8i0qK\nnqescfXGiSq09Ujj2a50eE38ZKX+dfkz2g0To2kaiFt6ZgR2lpij5jBQfXrP\nVqjqhQ0mNhC67y59nHzoWPUUXrdB52wxp8Uf4DM3vHPL9igZTY8EJxcKT+e5\nGU967pevK1SctkFqTN2hshrTayWKDmGqKb1NHbNUD7LuGISPrhIG+8Y64lu5\npbF6sSk8oqWkcIrU4E3Hjmsem3OUsHbHr1IAreTSYoD5vksiRatan2X7bPHu\noqTRZQ+cDLgPDVJXZd/v8fdvNJs+YmkOx/pVZgsbKJHVKJEA+hZX2tcMpEvb\nBDR6h/sY7vhXTSeguGJNY8ck7Ib+FOuQvoTJk0dKuc2fPAeqHfl3ccozKqEM\n094+Dy/1//rohDeJzgm+pkH8xaYK1y0zIMbSnR/DED+QgkIsfiV8uRcBQPe9\nP+7u5i2+0uiCdg8cErsYR0OZ9xGrqgRmZo33E9bsaVu9v6CTrpv2DnIGYgDg\nm5V+XAx2OagSo0DaLoMiXQhaBUUTq4wcPsXF9vIFSqrMfXzflZDKf0xbcG7l\nEHceynYPdS1TY/46DQl/5mhN0XexsMIUFgo+fLK1zKcWoXpDZv1VbHqmIGqS\nn37d8FmsrdcBO29PWxOdrfv9cN8Mwji4Gi7zzTG6HeYrbZv+5yJgHFNmXGxd\nAyBE\r\n=pKzZ\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"preset":"jest-expo-enzyme"},"main":"build/index.js","types":"build/index.d.ts","gitHead":"b33f5e224578564c3e4b1b467f258cc119b3b786","scripts":{"lint":"expo-module lint","test":"expo-module test","build":"expo-module build","clean":"expo-module clean","prepare":"expo-module prepare","expo-module":"expo-module","prepublishOnly":"expo-module prepublishOnly"},"_npmUser":{"name":"brentvatne","email":"brentvatne@gmail.com"},"repository":{"url":"git://github.com/expo/expo.git","type":"git","directory":"packages/jest-expo-enzyme"},"_npmVersion":"6.14.13","description":"A Jest preset that enables you to test your universal Expo & React elements with the Enzyme testing library.","directories":{},"sideEffects":true,"_nodeVersion":"14.15.2","dependencies":{"chalk":"^2.4.2","enzyme":"~3.11.0","jest-expo":"~42.0.0","jest-enzyme":"~7.1.2","enzyme-to-json":"~3.5.0","jest-canvas-mock":"~2.2.0","react-test-renderer":"~16.11.0","enzyme-adapter-react-16":"~1.15.2"},"_hasShrinkwrap":false,"devDependencies":{"@types/enzyme":"^3.10.3","expo-module-scripts":"^2.0.0","@types/enzyme-adapter-react-16":"~1.0.6"},"_npmOperationalInternal":{"tmp":"tmp/jest-expo-enzyme_1.2.0_1623871909203_0.28278274991774777","host":"s3://npm-registry-packages"}},"1.2.1":{"name":"jest-expo-enzyme","version":"1.2.1","keywords":["react-native","react-native-web","enzyme","jest","testing","react-test-renderer","react","universal"],"license":"MIT","_id":"jest-expo-enzyme@1.2.1","maintainers":[{"name":"haydendaly","email":"haydencdaly@gmail.com"},{"name":"kudochien","email":"ckchien@gmail.com"},{"name":"andyboythekid","email":"andydevs123@gmail.com"},{"name":"princefleaswallow","email":"mhampton@hey.com"},{"name":"ide","email":"ide+npm@jameside.com"},{"name":"brentvatne","email":"brentvatne@gmail.com"},{"name":"ccheever","email":"ccheever@gmail.com"},{"name":"evanbacon","email":"baconbrix@gmail.com"},{"name":"quinlanj","email":"quinlanjung@gmail.com"},{"name":"esamelson","email":"eric@expo.io"},{"name":"fson","email":"ville.immonen@iki.fi"},{"name":"expoadmin","email":"support@expo.io"},{"name":"charliecruzan","email":"charliecruzan@gmail.com"},{"name":"tsapeta","email":"npm@tsapeta.com"},{"name":"dsokal","email":"dominiksokal@gmail.com"},{"name":"tcdavis","email":"tc@expo.io"},{"name":"exponent","email":"exponent.team@gmail.com"},{"name":"wschurman","email":"wschurman@gmail.com"},{"name":"bbarthec","email":"bartlomiejbukowski.b@gmail.com"},{"name":"jkhales","email":"jonathan@expo.io"},{"name":"wkozyra","email":"wojciech.kozyra@swmansion.com"},{"name":"bycedric","email":"me@bycedric.com"},{"name":"lukmccall","email":"kosmatylukasz@gmail.com"},{"name":"jonsamp","email":"sampjon@gmail.com"}],"homepage":"https://github.com/expo/expo/tree/master/packages/jest-expo-enzyme","bugs":{"url":"https://github.com/expo/expo/issues"},"dist":{"shasum":"fbb5747effad65420550e9d31389118564889b80","tarball":"https://registry.npmjs.org/jest-expo-enzyme/-/jest-expo-enzyme-1.2.1.tgz","fileCount":19,"integrity":"sha512-igmP0PxXfgJJl3G+jpAfiJ6a2cZXWHdsseDi0NJsAHn00sFC2ZEoLdmurVUNyB0SOrmIHSFHDp1cluw15yU5KQ==","signatures":[{"sig":"MEUCIFFMYahqRHOJkutOwkT0j+vMEtSkjoaYXozLiJP+U2OkAiEAma7eEtHlGeBzxQqEIh/uGOJAP0zdovpDfK8wBdiWrho=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg545kCRA9TVsSAnZWagAAgJcP/2CqAxeUqLsVxtJ+lFn8\npsvRoFj1CDnSTqsLTg8+C35m0aDvY4GR5tROHVMKH4fiWgTTa9JglFGeH6eF\ngClQrtUsl/t1BRibjfqZUM++ifIXsP39QbjGm7dTdpoJHa8e4spULEuaX7P/\nR9beJum+tmeRt72uk11J5UgNnBvH9ZGoO/mxXjwJg8KhJC7l2MhPbfXcHT6Z\nfLordGqe2UT2XjwqB00rSM0KpdbYQot95V6FaJspF7OmV8QCAN3KtQ4mFB+l\nazkEJ221Nz0VaIq5pYsJ/OB8Vvi68mLsAWQ7TC3swMV9mq9/rzdgTqjgC6I0\nj9UFh5WXQnGNyJ+qYgP7uym/eKt1samxTRG3EaM25ntqda3c5DoRp1bgAh8z\nmVGpihLy7BaaWSiBfDS3FJaJi9wfp4Y6ZrDYmZlULEOUTIeLFLo4fkEzVUE2\nr0r0Aio2kunNODEopzlb94nk7l/QWPOaGfLJTR5PerCyg9KGysLmO6ysXSap\nGD84VOayXFDX+LHBcf3QiHL6gr5aGvKVMcHpNH06s7Ynj5lYbomMwuhLiDxt\nsP6h67hBAIO4LeWAPNVUFiAbvBOaEFhJ8J7SzzInj4RFA9EfYt26YCqc/4GE\nLBYEaEMnp6aql0JQPHl/OIZ0KdaobNRhxXxI7omq/OOYTaUHEbQHD6LhUJ7H\nV392\r\n=I5o/\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"preset":"jest-expo-enzyme"},"main":"build/index.js","types":"build/index.d.ts","gitHead":"0b865f6b9f889e54f6927023b4a7876c554bfef1","scripts":{"lint":"expo-module lint","test":"expo-module test","build":"expo-module build","clean":"expo-module clean","prepare":"expo-module prepare","expo-module":"expo-module","prepublishOnly":"expo-module prepublishOnly"},"_npmUser":{"name":"brentvatne","email":"brentvatne@gmail.com"},"repository":{"url":"git://github.com/expo/expo.git","type":"git","directory":"packages/jest-expo-enzyme"},"_npmVersion":"6.14.13","description":"A Jest preset that enables you to test your universal Expo & React elements with the Enzyme testing library.","directories":{},"sideEffects":true,"_nodeVersion":"14.15.2","dependencies":{"chalk":"^2.4.2","enzyme":"~3.11.0","jest-expo":"~42.0.1","jest-enzyme":"~7.1.2","enzyme-to-json":"~3.5.0","jest-canvas-mock":"~2.2.0","react-test-renderer":"~16.11.0","enzyme-adapter-react-16":"~1.15.2"},"_hasShrinkwrap":false,"devDependencies":{"@types/enzyme":"^3.10.3","expo-module-scripts":"^2.0.0","@types/enzyme-adapter-react-16":"~1.0.6"},"_npmOperationalInternal":{"tmp":"tmp/jest-expo-enzyme_1.2.1_1625788003745_0.3478790767711437","host":"s3://npm-registry-packages"}},"1.2.2":{"name":"jest-expo-enzyme","version":"1.2.2","keywords":["react-native","react-native-web","enzyme","jest","testing","react-test-renderer","react","universal"],"license":"MIT","_id":"jest-expo-enzyme@1.2.2","maintainers":[{"name":"fiber-god","email":"datwheat@gmail.com"},{"name":"ide","email":"ide+npm@jameside.com"},{"name":"brentvatne","email":"brentvatne@gmail.com"},{"name":"ccheever","email":"ccheever@gmail.com"},{"name":"evanbacon","email":"baconbrix@gmail.com"},{"name":"quinlanj","email":"quinlanjung@gmail.com"},{"name":"esamelson","email":"eric@expo.io"},{"name":"fson","email":"ville.immonen@iki.fi"},{"name":"expoadmin","email":"support@expo.io"},{"name":"charliecruzan","email":"charliecruzan@gmail.com"},{"name":"tsapeta","email":"npm@tsapeta.com"},{"name":"dsokal","email":"dominiksokal@gmail.com"},{"name":"tcdavis","email":"tc@expo.io"},{"name":"exponent","email":"exponent.team@gmail.com"},{"name":"wschurman","email":"wschurman@gmail.com"},{"name":"bbarthec","email":"bartlomiejbukowski.b@gmail.com"},{"name":"jkhales","email":"jonathan@expo.io"},{"name":"wkozyra","email":"wojciech.kozyra@swmansion.com"},{"name":"bycedric","email":"me@bycedric.com"},{"name":"lukmccall","email":"kosmatylukasz@gmail.com"},{"name":"jonsamp","email":"sampjon@gmail.com"},{"name":"princefleaswallow","email":"mhampton@hey.com"},{"name":"andyboythekid","email":"andydevs123@gmail.com"},{"name":"kudochien","email":"ckchien@gmail.com"},{"name":"haydendaly","email":"haydencdaly@gmail.com"}],"homepage":"https://github.com/expo/expo/tree/master/packages/jest-expo-enzyme","bugs":{"url":"https://github.com/expo/expo/issues"},"dist":{"shasum":"588f01151efaa6782458fc017750b63ea6f3ae85","tarball":"https://registry.npmjs.org/jest-expo-enzyme/-/jest-expo-enzyme-1.2.2.tgz","fileCount":19,"integrity":"sha512-ioCSvuCqfiSErNI/S4ptGMr6Vnjc/gkRk3hgygfxuKfv2S9DYNokPq2t5HB68MWYaw19sJIjMwQ6QZqTvniqvw==","signatures":[{"sig":"MEQCID1hUybw8WYXOXoQ3S3fF1PIW25fOgkjyK6qoPA4aBztAiBhxklVL55i8pECkj6uJi96Pg+qIK6PsDy9YvqSk890Ng==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24833},"jest":{"preset":"jest-expo-enzyme"},"main":"build/index.js","types":"build/index.d.ts","readme":"# jest-expo-enzyme\n\nA [Jest](https://facebook.github.io/jest/) preset that enables you to test your universal Expo & React elements with the [**Enzyme**](https://airbnb.io/enzyme/) testing library.\n\nThe default preset extends `jest-expo` which means it will run **iOS, Android, and web** platforms with the recommended Enzyme configs for web and native. Notice that we omit the `node` runner because SSR environments don't need to test how virtual DOM is rendered.\n\n## Installation\n\n- `yarn add jest-expo-enzyme --dev` or `npm i jest-expo-enzyme --save-dev`\n- Add the following config to `package.json`:\n\n  ```js\n  \"scripts\": {\n    \"test\": \"jest\",\n  },\n  \"jest\": {\n    \"preset\": \"jest-expo-enzyme\"\n  }\n  ```\n\n- Create a `__tests__` directory anywhere you like and a `Example-test.js` file inside of it, and add this code:\n\n  ```js\n  it('works', () => {\n    expect(1).toBe(1);\n  });\n  ```\n\n- Run `yarn test` or `npm test` and it should pass\n\n## Enzyme Example\n\nThe main benefit of using this preset is to get universal Enzyme support for testing your virtual DOM. Here is a basic example of testing how the `backgroundColor` property of a View style is rendered across iOS, Android, and web.\n\n```js\nimport { shallow } from 'enzyme';\nimport React from 'react';\nimport { View, StyleSheet, Platform } from 'react-native';\n\nit(`renders a view with a custom background`, () => {\n  const component = shallow(<View style={{ backgroundColor: 'rgba(0,0,0,0.5)' }} />);\n  // To debug your component use this:\n  console.log('Component:', component.debug({ verbose: true }));\n\n  // When snapshot testing, you should always try and be as concise as possible\n  // here we are extracting the style prop from `View` on native and `div` on web\n  const prop = component.find(Platform.select({ default: 'View', web: 'div' })).prop('style');\n\n  // Flatten the style so we can read it as an object\n  const style = StyleSheet.flatten(prop);\n\n  /**\n   * Android: exports[`renders a view with a custom background 1`] = `\"rgba(0,0,0,0.5)\"`;\n   * iOS: exports[`renders a view with a custom background 1`] = `\"rgba(0,0,0,0.5)\"`;\n   * web: exports[`renders a view with a custom background 1`] = `\"rgba(0,0,0,0.50)\"`;\n   */\n  expect(style.backgroundColor).toMatchSnapshot();\n});\n```\n\n## Customization\n\nWhen constructing your tests you will more than likely want to build them one platform at a time. To do this you'll want to create a `jest.config.js` with multiple platforms.\n\nThis is done by specifying a separate Jest config in the `projects` field of your custom Jest config. The `withEnzyme` method's purpose is to let you augment each single-platform Jest config with the configuration fields needed to support Enzyme.\n\nThis is why method `withEnzyme` exists.\n\nYou can use `withEnzyme` to add Enzyme support to an existing Jest config (**important:** this is only officially supported with Jest configs provided by `jest-expo`; mixing with other configs may not work as expected). Also use a custom serializer for the React Native **StyleSheet** API, which will make snapshot tests cleaner and easier to read.\n\n### Usage\n\n1. Create a `jest.config.js` in your root directory and delete the `jest` field in your `package.json`. You can also create any `js` file and pass it to the Jest CLI with the `-c` flag, ex: `yarn jest -c custom.config.js`.\n2. Import the platforms you want to test and add Enzyme support:\n\n```js\nconst { withEnzyme } = require('jest-expo-enzyme');\n\nmodule.exports = {\n  projects: [\n    // Skipping Node because we want to test DOM presets only\n    withEnzyme(require('jest-expo/ios/jest-preset')),\n    withEnzyme(require('jest-expo/android/jest-preset')),\n    // The Enzyme support added to web is different from that added to native, which `withEnzyme` handles\n    // Luckily you won't have to do anything special because it reads the platform from\n    // `haste.defaultPlatform` of the provided Jest config\n    withEnzyme(require('jest-expo/web/jest-preset')),\n  ],\n};\n```\n\n3. Run your tests with this new preset!\n\n### Snapshots\n\n`jest-expo-enzyme` wraps `jest-expo` which means you get access to the advanced multi-platform snapshot system required for truly testing your universal application code.\n\nHere is an example output:\n\n|- `View-test.tsx`\n|-- `__snapshots__/View-test.tsx.snap.android`\n|-- `__snapshots__/View-test.tsx.snap.ios`\n|-- `__snapshots__/View-test.tsx.snap.node`\n|-- `__snapshots__/View-test.tsx.snap.web`\n\n### Extensions\n\nTo test specific platforms you can use the following extensions:\n\n- iOS: `-test.ios.*`, `-test.native.*`\n- Android: `-test.android.*`, `-test.native.*`\n- web: `-test.web.*`\n- Node: `-test.node.*`, `-test.web.*`\n","gitHead":"1fffde73411ee7a642b98f1506a8de921805d52b","scripts":{"lint":"expo-module lint","test":"expo-module test","build":"expo-module build","clean":"expo-module clean","prepare":"expo-module prepare","expo-module":"expo-module","prepublishOnly":"expo-module prepublishOnly"},"_npmUser":{"name":"tsapeta","email":"npm@tsapeta.com"},"repository":{"url":"git://github.com/expo/expo.git","type":"git","directory":"packages/jest-expo-enzyme"},"_npmVersion":"6.14.13","description":"A Jest preset that enables you to test your universal Expo & React elements with the Enzyme testing library.","directories":{},"sideEffects":true,"_nodeVersion":"16.0.0","dependencies":{"chalk":"^2.4.2","enzyme":"~3.11.0","jest-expo":"~43.0.0-beta.0","jest-enzyme":"~7.1.2","enzyme-to-json":"~3.5.0","jest-canvas-mock":"~2.2.0","react-test-renderer":"~17.0.1","@wojtekmaj/enzyme-adapter-react-17":"^0.6.3"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"@types/enzyme":"^3.10.3","expo-module-scripts":"^2.0.0","@types/enzyme-adapter-react-16":"~1.0.6"},"_npmOperationalInternal":{"tmp":"tmp/jest-expo-enzyme_1.2.2_1632842614605_0.9601613623869669","host":"s3://npm-registry-packages"}},"1.2.3":{"name":"jest-expo-enzyme","version":"1.2.3","keywords":["react-native","react-native-web","enzyme","jest","testing","react-test-renderer","react","universal"],"license":"MIT","_id":"jest-expo-enzyme@1.2.3","maintainers":[{"name":"fiber-god","email":"datwheat@gmail.com"},{"name":"ide","email":"ide+npm@jameside.com"},{"name":"brentvatne","email":"brentvatne@gmail.com"},{"name":"ccheever","email":"ccheever@gmail.com"},{"name":"evanbacon","email":"baconbrix@gmail.com"},{"name":"quinlanj","email":"quinlanjung@gmail.com"},{"name":"esamelson","email":"eric@expo.io"},{"name":"expoadmin","email":"support@expo.io"},{"name":"charliecruzan","email":"charliecruzan@gmail.com"},{"name":"tsapeta","email":"npm@tsapeta.com"},{"name":"dsokal","email":"dominiksokal@gmail.com"},{"name":"tcdavis","email":"tc@expo.io"},{"name":"exponent","email":"exponent.team@gmail.com"},{"name":"wschurman","email":"wschurman@gmail.com"},{"name":"bbarthec","email":"bartlomiejbukowski.b@gmail.com"},{"name":"jkhales","email":"jonathan@expo.io"},{"name":"wkozyra","email":"wojciech.kozyra@swmansion.com"},{"name":"bycedric","email":"me@bycedric.com"},{"name":"lukmccall","email":"kosmatylukasz@gmail.com"},{"name":"jonsamp","email":"sampjon@gmail.com"},{"name":"princefleaswallow","email":"mhampton@hey.com"},{"name":"andyboythekid","email":"andydevs123@gmail.com"},{"name":"kudochien","email":"ckchien@gmail.com"}],"homepage":"https://github.com/expo/expo/tree/master/packages/jest-expo-enzyme","bugs":{"url":"https://github.com/expo/expo/issues"},"dist":{"shasum":"b3b5170913030bd5336e15ade0daecc8bcdd7383","tarball":"https://registry.npmjs.org/jest-expo-enzyme/-/jest-expo-enzyme-1.2.3.tgz","fileCount":19,"integrity":"sha512-XaCggeSx+Yo1YKIWpkasOyNRqMKYGfrjpXhrtJjRgqhu00al9XL3wWMERYaeXy0NYLLwv5U1pNWjFgF7u1O+Vg==","signatures":[{"sig":"MEUCIBVjQnlB2KJn8aQ5uyavwwvOWrPjv301E/pVXBLl7TlMAiEA0Guf93LHMcK1UwAg6PWeCwL2TOTFxs0Z/Ci6AI57P1Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24833},"jest":{"preset":"jest-expo-enzyme"},"main":"build/index.js","types":"build/index.d.ts","readme":"# jest-expo-enzyme\n\nA [Jest](https://facebook.github.io/jest/) preset that enables you to test your universal Expo & React elements with the [**Enzyme**](https://airbnb.io/enzyme/) testing library.\n\nThe default preset extends `jest-expo` which means it will run **iOS, Android, and web** platforms with the recommended Enzyme configs for web and native. Notice that we omit the `node` runner because SSR environments don't need to test how virtual DOM is rendered.\n\n## Installation\n\n- `yarn add jest-expo-enzyme --dev` or `npm i jest-expo-enzyme --save-dev`\n- Add the following config to `package.json`:\n\n  ```js\n  \"scripts\": {\n    \"test\": \"jest\",\n  },\n  \"jest\": {\n    \"preset\": \"jest-expo-enzyme\"\n  }\n  ```\n\n- Create a `__tests__` directory anywhere you like and a `Example-test.js` file inside of it, and add this code:\n\n  ```js\n  it('works', () => {\n    expect(1).toBe(1);\n  });\n  ```\n\n- Run `yarn test` or `npm test` and it should pass\n\n## Enzyme Example\n\nThe main benefit of using this preset is to get universal Enzyme support for testing your virtual DOM. Here is a basic example of testing how the `backgroundColor` property of a View style is rendered across iOS, Android, and web.\n\n```js\nimport { shallow } from 'enzyme';\nimport React from 'react';\nimport { View, StyleSheet, Platform } from 'react-native';\n\nit(`renders a view with a custom background`, () => {\n  const component = shallow(<View style={{ backgroundColor: 'rgba(0,0,0,0.5)' }} />);\n  // To debug your component use this:\n  console.log('Component:', component.debug({ verbose: true }));\n\n  // When snapshot testing, you should always try and be as concise as possible\n  // here we are extracting the style prop from `View` on native and `div` on web\n  const prop = component.find(Platform.select({ default: 'View', web: 'div' })).prop('style');\n\n  // Flatten the style so we can read it as an object\n  const style = StyleSheet.flatten(prop);\n\n  /**\n   * Android: exports[`renders a view with a custom background 1`] = `\"rgba(0,0,0,0.5)\"`;\n   * iOS: exports[`renders a view with a custom background 1`] = `\"rgba(0,0,0,0.5)\"`;\n   * web: exports[`renders a view with a custom background 1`] = `\"rgba(0,0,0,0.50)\"`;\n   */\n  expect(style.backgroundColor).toMatchSnapshot();\n});\n```\n\n## Customization\n\nWhen constructing your tests you will more than likely want to build them one platform at a time. To do this you'll want to create a `jest.config.js` with multiple platforms.\n\nThis is done by specifying a separate Jest config in the `projects` field of your custom Jest config. The `withEnzyme` method's purpose is to let you augment each single-platform Jest config with the configuration fields needed to support Enzyme.\n\nThis is why method `withEnzyme` exists.\n\nYou can use `withEnzyme` to add Enzyme support to an existing Jest config (**important:** this is only officially supported with Jest configs provided by `jest-expo`; mixing with other configs may not work as expected). Also use a custom serializer for the React Native **StyleSheet** API, which will make snapshot tests cleaner and easier to read.\n\n### Usage\n\n1. Create a `jest.config.js` in your root directory and delete the `jest` field in your `package.json`. You can also create any `js` file and pass it to the Jest CLI with the `-c` flag, ex: `yarn jest -c custom.config.js`.\n2. Import the platforms you want to test and add Enzyme support:\n\n```js\nconst { withEnzyme } = require('jest-expo-enzyme');\n\nmodule.exports = {\n  projects: [\n    // Skipping Node because we want to test DOM presets only\n    withEnzyme(require('jest-expo/ios/jest-preset')),\n    withEnzyme(require('jest-expo/android/jest-preset')),\n    // The Enzyme support added to web is different from that added to native, which `withEnzyme` handles\n    // Luckily you won't have to do anything special because it reads the platform from\n    // `haste.defaultPlatform` of the provided Jest config\n    withEnzyme(require('jest-expo/web/jest-preset')),\n  ],\n};\n```\n\n3. Run your tests with this new preset!\n\n### Snapshots\n\n`jest-expo-enzyme` wraps `jest-expo` which means you get access to the advanced multi-platform snapshot system required for truly testing your universal application code.\n\nHere is an example output:\n\n|- `View-test.tsx`\n|-- `__snapshots__/View-test.tsx.snap.android`\n|-- `__snapshots__/View-test.tsx.snap.ios`\n|-- `__snapshots__/View-test.tsx.snap.node`\n|-- `__snapshots__/View-test.tsx.snap.web`\n\n### Extensions\n\nTo test specific platforms you can use the following extensions:\n\n- iOS: `-test.ios.*`, `-test.native.*`\n- Android: `-test.android.*`, `-test.native.*`\n- web: `-test.web.*`\n- Node: `-test.node.*`, `-test.web.*`\n","gitHead":"2718b696f4a6919905b0f47ebb24ff65b42d8ff9","scripts":{"lint":"expo-module lint","test":"expo-module test","build":"expo-module build","clean":"expo-module clean","prepare":"expo-module prepare","expo-module":"expo-module","prepublishOnly":"expo-module prepublishOnly"},"_npmUser":{"name":"brentvatne","email":"brentvatne@gmail.com"},"repository":{"url":"git://github.com/expo/expo.git","type":"git","directory":"packages/jest-expo-enzyme"},"_npmVersion":"7.20.3","description":"A Jest preset that enables you to test your universal Expo & React elements with the Enzyme testing library.","directories":{},"sideEffects":true,"_nodeVersion":"14.15.2","dependencies":{"chalk":"^2.4.2","enzyme":"~3.11.0","jest-expo":"~43.0.0-beta.1","jest-enzyme":"~7.1.2","enzyme-to-json":"~3.5.0","jest-canvas-mock":"~2.2.0","react-test-renderer":"~17.0.1","@wojtekmaj/enzyme-adapter-react-17":"^0.6.3"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"@types/enzyme":"^3.10.3","expo-module-scripts":"^2.0.0","@types/enzyme-adapter-react-16":"~1.0.6"},"_npmOperationalInternal":{"tmp":"tmp/jest-expo-enzyme_1.2.3_1633129699817_0.0443015348475817","host":"s3://npm-registry-packages"}},"1.2.4":{"name":"jest-expo-enzyme","version":"1.2.4","keywords":["react-native","react-native-web","enzyme","jest","testing","react-test-renderer","react","universal"],"license":"MIT","_id":"jest-expo-enzyme@1.2.4","maintainers":[{"name":"kgc00","email":"kirbygc00@gmail.com"},{"name":"fiber-god","email":"datwheat@gmail.com"},{"name":"ide","email":"ide+npm@jameside.com"},{"name":"brentvatne","email":"brentvatne@gmail.com"},{"name":"ccheever","email":"ccheever@gmail.com"},{"name":"evanbacon","email":"baconbrix@gmail.com"},{"name":"quinlanj","email":"quinlanjung@gmail.com"},{"name":"esamelson","email":"eric@expo.io"},{"name":"expoadmin","email":"support@expo.io"},{"name":"charliecruzan","email":"charliecruzan@gmail.com"},{"name":"tsapeta","email":"npm@tsapeta.com"},{"name":"dsokal","email":"dominiksokal@gmail.com"},{"name":"tcdavis","email":"tc@expo.io"},{"name":"exponent","email":"exponent.team@gmail.com"},{"name":"wschurman","email":"wschurman@gmail.com"},{"name":"bbarthec","email":"bartlomiejbukowski.b@gmail.com"},{"name":"jkhales","email":"jonathan@expo.io"},{"name":"wkozyra","email":"wojciech.kozyra@swmansion.com"},{"name":"bycedric","email":"me@bycedric.com"},{"name":"lukmccall","email":"kosmatylukasz@gmail.com"},{"name":"jonsamp","email":"sampjon@gmail.com"},{"name":"princefleaswallow","email":"mhampton@hey.com"},{"name":"andyboythekid","email":"andydevs123@gmail.com"},{"name":"kudochien","email":"ckchien@gmail.com"}],"homepage":"https://github.com/expo/expo/tree/master/packages/jest-expo-enzyme","bugs":{"url":"https://github.com/expo/expo/issues"},"dist":{"shasum":"cb4a8ad13bfe4c506d35be15819fdc07df324d87","tarball":"https://registry.npmjs.org/jest-expo-enzyme/-/jest-expo-enzyme-1.2.4.tgz","fileCount":19,"integrity":"sha512-PMIuixWbMNrHIQFuIENKY0iMSGVMOb1fz2WQmuIL3uwUNhY54m+F8PN6hvQ/4Z/ACH6fBlYUXmgLPO750uKVsA==","signatures":[{"sig":"MEUCIQCUzS3UpybjgzCTWVhAyK9y8AiD41Tf1sNaYLTI8sw3jwIgY3IBUXe5Tk2CP9JnEWe/Msg8O/zIUEUrlBPXk52N0zc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24833},"jest":{"preset":"jest-expo-enzyme"},"main":"build/index.js","types":"build/index.d.ts","gitHead":"d23e1ac491da96b51c25eb2533efcd56499ee287","scripts":{"lint":"expo-module lint","test":"expo-module test","build":"expo-module build","clean":"expo-module clean","prepare":"expo-module prepare","expo-module":"expo-module","prepublishOnly":"expo-module prepublishOnly"},"_npmUser":{"name":"brentvatne","email":"brentvatne@gmail.com"},"repository":{"url":"git://github.com/expo/expo.git","type":"git","directory":"packages/jest-expo-enzyme"},"_npmVersion":"7.20.3","description":"A Jest preset that enables you to test your universal Expo & React elements with the Enzyme testing library.","directories":{},"sideEffects":true,"_nodeVersion":"14.15.2","dependencies":{"chalk":"^2.4.2","enzyme":"~3.11.0","jest-expo":"~43.0.0-beta.1","jest-enzyme":"~7.1.2","enzyme-to-json":"~3.5.0","jest-canvas-mock":"~2.2.0","react-test-renderer":"~17.0.1","@wojtekmaj/enzyme-adapter-react-17":"^0.6.3"},"_hasShrinkwrap":false,"devDependencies":{"@types/enzyme":"^3.10.3","expo-module-scripts":"^2.0.0","@types/enzyme-adapter-react-16":"~1.0.6"},"_npmOperationalInternal":{"tmp":"tmp/jest-expo-enzyme_1.2.4_1634323872173_0.9797380330705912","host":"s3://npm-registry-packages"}},"1.2.5":{"name":"jest-expo-enzyme","version":"1.2.5","keywords":["react-native","react-native-web","enzyme","jest","testing","react-test-renderer","react","universal"],"license":"MIT","_id":"jest-expo-enzyme@1.2.5","maintainers":[{"name":"kgc00","email":"kirbygc00@gmail.com"},{"name":"fiber-god","email":"datwheat@gmail.com"},{"name":"ide","email":"ide+npm@jameside.com"},{"name":"brentvatne","email":"brentvatne@gmail.com"},{"name":"ccheever","email":"ccheever@gmail.com"},{"name":"evanbacon","email":"baconbrix@gmail.com"},{"name":"quinlanj","email":"quinlanjung@gmail.com"},{"name":"esamelson","email":"eric@expo.io"},{"name":"expoadmin","email":"support@expo.io"},{"name":"charliecruzan","email":"charliecruzan@gmail.com"},{"name":"tsapeta","email":"npm@tsapeta.com"},{"name":"dsokal","email":"dominiksokal@gmail.com"},{"name":"tcdavis","email":"tc@expo.io"},{"name":"exponent","email":"exponent.team@gmail.com"},{"name":"wschurman","email":"wschurman@gmail.com"},{"name":"bbarthec","email":"bartlomiejbukowski.b@gmail.com"},{"name":"jkhales","email":"jonathan@expo.io"},{"name":"wkozyra","email":"wojciech.kozyra@swmansion.com"},{"name":"bycedric","email":"me@bycedric.com"},{"name":"lukmccall","email":"kosmatylukasz@gmail.com"},{"name":"jonsamp","email":"sampjon@gmail.com"},{"name":"princefleaswallow","email":"mhampton@hey.com"},{"name":"andyboythekid","email":"andydevs123@gmail.com"},{"name":"kudochien","email":"ckchien@gmail.com"}],"homepage":"https://github.com/expo/expo/tree/master/packages/jest-expo-enzyme","bugs":{"url":"https://github.com/expo/expo/issues"},"dist":{"shasum":"c4f5e7ba922562744a8b2b68a0f26ce3f75c1f70","tarball":"https://registry.npmjs.org/jest-expo-enzyme/-/jest-expo-enzyme-1.2.5.tgz","fileCount":19,"integrity":"sha512-xYvE69UbUH0tn+EtZM9utKAQfRIQQLF2oiSeLZfcUzs1VFVcyP2Bl6P7MSYbNTN4ZBVL3nkF+SQehQVwed62qg==","signatures":[{"sig":"MEUCIFAK2P5/sYLad8qkwt5shUkG4MQZxjmMHrB7WJPZQEFsAiEAoVRxDOnIe4WbXhpTuMvVH4ObL8i3tf66xhpgdf6+lvQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24843,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhqo/jCRA9TVsSAnZWagAAySgP/37+ajIO0QEuIMlGQsXc\nFeIYgCpwGqtA5h+vublPRF0h7TrDbjCeGPP9/nVeD3aKbiaC+TVIIL1TAKe3\nsIOtzeI5HMqDvE588d1Tc1E/Wd+++AL0gFkCZg3vYstP7SHomsskSgw+929j\nDP1zSTf8rQyCabVHV893IL15h80PU6yK1mg7AahFKCM5YCYb0Dpov0HfIf2H\n/wlYv6xXoP52IBUDiH2lyT+1PtK86g8XuzrAnIB2XLpx/bu7WLwAe9m19BO8\nNi0M+JPxj0bA5gOUijXPlUEvdnU2obGn0dihYjfiwnQShY2/bWIzBShKbo5t\nACk/HrSd1TcGe3GnJ5bPuGsoTJumqSr9k70csh9NZHXdG8YjHLecCvAPtpI/\ntugNuv4Taeq6mwjnMDiB/UbbS9GQg5r1eUMo8Q/qQw0a3HQ3ICDeha68EJ3f\n+ayo+wxm8UMgWBLgFblyWu/s69VZH5NGZqF+pN1fE2QgdvPmVgReSfM8+ns7\nJ/E0y+xmRz+4RZBL89xuVdUqUyugMm6qkMKR9g9sYkqzMz7BW2PnJW/JUix3\nnAp3sA4aFT4h6Nj6I8run4hYsGmP3+s2G4A3Ck2j+sSYgOju6G7VzaLy5wQl\nH7+NEytNb3/XmTUIAbqN8ohkaIAmf1G+3gesLuAyAY08cQB9TAAy1czVVrg+\nq4oV\r\n=QLPe\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"preset":"jest-expo-enzyme"},"main":"build/index.js","types":"build/index.d.ts","gitHead":"4ac89934e2acc4ef1fad59f338d9019fe2d92240","scripts":{"lint":"expo-module lint","test":"expo-module test","build":"expo-module build","clean":"expo-module clean","prepare":"expo-module prepare","expo-module":"expo-module","prepublishOnly":"expo-module prepublishOnly"},"_npmUser":{"name":"brentvatne","email":"brentvatne@gmail.com"},"repository":{"url":"git://github.com/expo/expo.git","type":"git","directory":"packages/jest-expo-enzyme"},"_npmVersion":"8.1.0","description":"A Jest preset that enables you to test your universal Expo & React elements with the Enzyme testing library.","directories":{},"sideEffects":true,"_nodeVersion":"16.13.0","dependencies":{"chalk":"^2.4.2","enzyme":"~3.11.0","jest-expo":"~44.0.0-beta.0","jest-enzyme":"~7.1.2","enzyme-to-json":"~3.5.0","jest-canvas-mock":"~2.2.0","react-test-renderer":"~17.0.1","@wojtekmaj/enzyme-adapter-react-17":"^0.6.3"},"_hasShrinkwrap":false,"devDependencies":{"@types/enzyme":"^3.10.3","expo-module-scripts":"^2.0.0","@types/enzyme-adapter-react-16":"~1.0.6"},"_npmOperationalInternal":{"tmp":"tmp/jest-expo-enzyme_1.2.5_1638567907519_0.015535684939830485","host":"s3://npm-registry-packages"}},"1.3.0":{"name":"jest-expo-enzyme","version":"1.3.0","keywords":["react-native","react-native-web","enzyme","jest","testing","react-test-renderer","react","universal"],"license":"MIT","_id":"jest-expo-enzyme@1.3.0","maintainers":[{"name":"kbrandwijk","email":"kim.brandwijk@gmail.com"},{"name":"kgc00","email":"kirbygc00@gmail.com"},{"name":"fiber-god","email":"datwheat@gmail.com"},{"name":"ide","email":"ide+npm@jameside.com"},{"name":"brentvatne","email":"brentvatne@gmail.com"},{"name":"ccheever","email":"ccheever@gmail.com"},{"name":"evanbacon","email":"baconbrix@gmail.com"},{"name":"quinlanj","email":"quinlanjung@gmail.com"},{"name":"esamelson","email":"eric@expo.io"},{"name":"expoadmin","email":"support@expo.io"},{"name":"tsapeta","email":"npm@tsapeta.com"},{"name":"dsokal","email":"dominiksokal@gmail.com"},{"name":"tcdavis","email":"tc@expo.io"},{"name":"exponent","email":"exponent.team@gmail.com"},{"name":"wschurman","email":"wschurman@gmail.com"},{"name":"bbarthec","email":"bartlomiejbukowski.b@gmail.com"},{"name":"wkozyra","email":"wojciech.kozyra@swmansion.com"},{"name":"bycedric","email":"me@bycedric.com"},{"name":"lukmccall","email":"kosmatylukasz@gmail.com"},{"name":"jonsamp","email":"sampjon@gmail.com"},{"name":"princefleaswallow","email":"mhampton@hey.com"},{"name":"andyboythekid","email":"andydevs123@gmail.com"},{"name":"kudochien","email":"ckchien@gmail.com"}],"homepage":"https://github.com/expo/expo/tree/main/packages/jest-expo-enzyme","bugs":{"url":"https://github.com/expo/expo/issues"},"dist":{"shasum":"231264da1ba0960887dc0f395ae07ac34d124e6f","tarball":"https://registry.npmjs.org/jest-expo-enzyme/-/jest-expo-enzyme-1.3.0.tgz","fileCount":19,"integrity":"sha512-iiATl1gfIxHSeyuzFfpl5YAnkmBe9teEleT/0Sw1MuOXLpbmWaCXLFMCgZ6AbMvCtliqBUn3vgAV4BQsnbmJbg==","signatures":[{"sig":"MEUCIAqDOrRiRn586ONQn+KL/o0wbqGWEUp/mSDFNpymGnvOAiEA6u/0K+Z0GsSP0ePD7paftE1wmbheT2lQuE5jAnpqhDo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24841,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiXYBRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrK4A//angXhgr8TQFXr95DX6PS0/N6Sf2B+O/NmhmH8ZlVFiC8w0+S\r\n6DRRPqDz3tDZNkeq6UVQwg+LVfMTdpWv6628vmXmP+oCBBJxNvm1g9tz4YYJ\r\njpjyyoLn/vA1HGP4DP/kDGX2Ioj4vjimRxwWI2lOk1MpNl5mNpGgWYyPb6ua\r\nZWvDEwqhpmct11t2d4aI14WNug8dHUYZo5FWTvEQDOlt9FoWpvVfUzJaemHt\r\nPDgB/q26XuDNzzj3y2RHuCHl6rhAXbl9egw0wFaKtzbLdfzgPN0djgfJCbu9\r\nLwVzopWV982qWoRkCfzWbzCowtUDwbyb+oVK1ApeuDtsVzBBibjDi5WhtrOu\r\nlv7Zqmq7Wn2IeIS9lr+5vramAL2YBryyfovk5HeYSC/diNV5/A/mnEiaiaRh\r\nC7bE6+wizEMUHeb1V4EtZANZAm6TaLrJysrUI6VjvtoFTQr2OT3m8p1lNc4L\r\n983oTbMRlo7zd0Q3iBzjmyThLLMNWLoE4B2E8Lf0yrXOhr/rjyKi9ugB2cgN\r\nECZrzuB5ii6eRzWqpgGIDEAxn43p1CmibLmXitqp4UBa0XTMEt658noAiE4B\r\nMXDJx8APOnhnEINjd0pQxUbSi39uVWgp1We2cLdZcoLx/ELMYdSoBJJcteo3\r\nwcZNUOZ73d48WDJCHuROXROpRo5Ssccov6o=\r\n=CPo6\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"preset":"jest-expo-enzyme"},"main":"build/index.js","types":"build/index.d.ts","gitHead":"22dce752354bb429c84851bc4389abe47a766b1f","scripts":{"lint":"expo-module lint","test":"expo-module test","build":"expo-module build","clean":"expo-module clean","prepare":"expo-module prepare","expo-module":"expo-module","prepublishOnly":"expo-module prepublishOnly"},"_npmUser":{"name":"tsapeta","email":"npm@tsapeta.com"},"repository":{"url":"git://github.com/expo/expo.git","type":"git","directory":"packages/jest-expo-enzyme"},"_npmVersion":"6.14.15","description":"A Jest preset that enables you to test your universal Expo & React elements with the Enzyme testing library.","directories":{},"sideEffects":true,"_nodeVersion":"16.0.0","dependencies":{"chalk":"^2.4.2","enzyme":"~3.11.0","jest-expo":"~45.0.0-beta.1","jest-enzyme":"~7.1.2","enzyme-to-json":"~3.5.0","jest-canvas-mock":"~2.2.0","react-test-renderer":"~17.0.2","@wojtekmaj/enzyme-adapter-react-17":"^0.6.3"},"_hasShrinkwrap":false,"devDependencies":{"@types/enzyme":"^3.10.3","expo-module-scripts":"^2.0.0","@types/enzyme-adapter-react-16":"~1.0.6"},"_npmOperationalInternal":{"tmp":"tmp/jest-expo-enzyme_1.3.0_1650294865202_0.6378417512756203","host":"s3://npm-registry-packages"}},"1.4.0":{"name":"jest-expo-enzyme","version":"1.4.0","keywords":["react-native","react-native-web","enzyme","jest","testing","react-test-renderer","react","universal"],"license":"MIT","_id":"jest-expo-enzyme@1.4.0","maintainers":[{"name":"kbrandwijk","email":"kim.brandwijk@gmail.com"},{"name":"kgc00","email":"kirbygc00@gmail.com"},{"name":"fiber-god","email":"datwheat@gmail.com"},{"name":"ide","email":"ide+npm@jameside.com"},{"name":"brentvatne","email":"brentvatne@gmail.com"},{"name":"ccheever","email":"ccheever@gmail.com"},{"name":"evanbacon","email":"baconbrix@gmail.com"},{"name":"quinlanj","email":"quinlanjung@gmail.com"},{"name":"esamelson","email":"eric@expo.io"},{"name":"expoadmin","email":"support@expo.io"},{"name":"tsapeta","email":"npm@tsapeta.com"},{"name":"dsokal","email":"dominiksokal@gmail.com"},{"name":"tcdavis","email":"tc@expo.io"},{"name":"exponent","email":"exponent.team@gmail.com"},{"name":"wschurman","email":"wschurman@gmail.com"},{"name":"bbarthec","email":"bartlomiejbukowski.b@gmail.com"},{"name":"wkozyra","email":"wojciech.kozyra@swmansion.com"},{"name":"bycedric","email":"me@bycedric.com"},{"name":"lukmccall","email":"kosmatylukasz@gmail.com"},{"name":"jonsamp","email":"sampjon@gmail.com"},{"name":"princefleaswallow","email":"mhampton@hey.com"},{"name":"andyboythekid","email":"andydevs123@gmail.com"},{"name":"kudochien","email":"ckchien@gmail.com"}],"homepage":"https://github.com/expo/expo/tree/main/packages/jest-expo-enzyme","bugs":{"url":"https://github.com/expo/expo/issues"},"dist":{"shasum":"d2485cab045670bd5ff77db736e77b422cb9c725","tarball":"https://registry.npmjs.org/jest-expo-enzyme/-/jest-expo-enzyme-1.4.0.tgz","fileCount":19,"integrity":"sha512-rsFu5UtGOkV+F8YutWS87fLVgWQW2l6bTswEpYEjeiMre4RaImzGpHPuJNEPvhqFK8YC0WDDdEttjy7HtYiLnw==","signatures":[{"sig":"MEUCIACqRY3mW3bmHxOXsVQaxw5Wf7CHLQKYmkKGwtFYt6xiAiEA/TYJvky2o4Ez5Zey2r1cLRt1i6i6VcldowHlXsoLO7A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27961,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJix2q+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoxpg/7BvnzX577437PBxlRgGn57WpECeDJ3+VXAeWsMzlzUeHlV4N+\r\n6n2ySchwtsFTe5UwuSpX4JJJG38OPqcD9jrcTroOfNWZsoSPwFxJEM6/ynHY\r\nY5ONAYFlkwUKmpu+RqfHcophq1SD7cIyLOixYETETbz9SlwX4mtVoBsr5beT\r\n3onichMBcYbd+R0B9sHMisRLxKe6YCCCCjVobutPfeHzlrR0Jp6tbizxJK8e\r\n4bHxtGJkVBtc6mqGnQI15dTN/S8Fbxid0IIMlQ2Pjz3/7q9To08NfUBrGRV8\r\n1nn9i24ZBiDy9FDCOmuZdDtY08pHNLSh19mipZhkYO96eWqrlAlZI9e7peou\r\n3TAaiKiyowkSGNf0HnTfCuLKP6Tu2G/RieFoVxvtOK/qERDn2nocfY+BlYgM\r\nB58GcTrhAeAru5RwlbhqAMCDFJ1atlxoxG2lvT+F3edg5aeuZfCmYyxT9tuS\r\nmCBnNfvzYgb7ccPb39Pbo7CaT8kGDFkIEdPGR5tjcK3qX3P648L71aayFMN8\r\ns7+o3QJtjQXzjh7YSV1+WTRZWaPNouaNj297/xa1L2lEspfzhocAKLR8XxN7\r\nTrosCeU3xq6Fy/cTtH7Q3x3n8NMFNVHN95w2S5IW//kefu+OyFdrgqe9AE2B\r\n24n6Lt+VjQAhNfBJ6mueBCbs2gTrbw0/qk8=\r\n=K4Uq\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"preset":"jest-expo-enzyme"},"main":"build/index.js","types":"build/index.d.ts","gitHead":"6e131f2da851a47c3a24eb3d6fc971a1a7822086","scripts":{"lint":"expo-module lint","test":"expo-module test","build":"expo-module build","clean":"expo-module clean","prepare":"expo-module prepare","expo-module":"expo-module","prepublishOnly":"expo-module prepublishOnly"},"_npmUser":{"name":"brentvatne","email":"brentvatne@gmail.com"},"repository":{"url":"git://github.com/expo/expo.git","type":"git","directory":"packages/jest-expo-enzyme"},"_npmVersion":"8.1.0","description":"A Jest preset that enables you to test your universal Expo & React elements with the Enzyme testing library.","directories":{},"sideEffects":true,"_nodeVersion":"16.13.0","dependencies":{"chalk":"^2.4.2","enzyme":"~3.11.0","jest-expo":"~46.0.0","jest-enzyme":"~7.1.2","enzyme-to-json":"~3.5.0","jest-canvas-mock":"~2.2.0","react-test-renderer":"~18.0.0","@wojtekmaj/enzyme-adapter-react-17":"^0.6.3"},"_hasShrinkwrap":false,"devDependencies":{"@types/enzyme":"^3.10.3","expo-module-scripts":"^2.0.0","@types/enzyme-adapter-react-16":"~1.0.6"},"_npmOperationalInternal":{"tmp":"tmp/jest-expo-enzyme_1.4.0_1657236158006_0.9836175096717561","host":"s3://npm-registry-packages"}},"1.4.1":{"name":"jest-expo-enzyme","version":"1.4.1","keywords":["react-native","react-native-web","enzyme","jest","testing","react-test-renderer","react","universal"],"license":"MIT","_id":"jest-expo-enzyme@1.4.1","maintainers":[{"name":"christopherwalter","email":"chris@christopherwalter.com"},{"name":"kbrandwijk","email":"kim.brandwijk@gmail.com"},{"name":"fiber-god","email":"datwheat@gmail.com"},{"name":"ide","email":"ide+npm@jameside.com"},{"name":"brentvatne","email":"brentvatne@gmail.com"},{"name":"evanbacon","email":"baconbrix@gmail.com"},{"name":"quinlanj","email":"quinlanjung@gmail.com"},{"name":"expoadmin","email":"support@expo.io"},{"name":"tsapeta","email":"npm@tsapeta.com"},{"name":"dsokal","email":"dominiksokal@gmail.com"},{"name":"tcdavis","email":"tc@expo.io"},{"name":"exponent","email":"exponent.team@gmail.com"},{"name":"wschurman","email":"wschurman@gmail.com"},{"name":"wkozyra","email":"wojciech.kozyra@swmansion.com"},{"name":"bycedric","email":"me@bycedric.com"},{"name":"lukmccall","email":"kosmatylukasz@gmail.com"},{"name":"jonsamp","email":"sampjon@gmail.com"},{"name":"princefleaswallow","email":"mhampton@hey.com"},{"name":"andyboythekid","email":"andydevs123@gmail.com"},{"name":"kudochien","email":"ckchien@gmail.com"}],"homepage":"https://github.com/expo/expo/tree/main/packages/jest-expo-enzyme","bugs":{"url":"https://github.com/expo/expo/issues"},"dist":{"shasum":"a18cb015d470167ee4d8afda2a6301f9a9f840b8","tarball":"https://registry.npmjs.org/jest-expo-enzyme/-/jest-expo-enzyme-1.4.1.tgz","fileCount":19,"integrity":"sha512-4uOl/5Bythw+LCg6ZHN8w3l8a7thCtRXNYtXjxiUX2170JpC0TGFFyCQvrdcLw/t/j8Ga42kQwfuJfUW5aO4YA==","signatures":[{"sig":"MEUCICj5sY5ZqrPpN5jWVXQHETJ8AkfhU2pWHdKAAj8Clo4XAiEAjR3hUaXdM9ky9BeMG3lSEH3wUuWOqJ/5dojSWppqpE4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27961,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWAggACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqZdw//a2AsEplBnvZxXqMBrXzhFSj5MHgdMq8VeCRJeaXDIl4ZY5s5\r\nrrDdOUDSGMCF0snOc7p9Z1krD3HhmIGhCS2xn2Tl+Io7oH+GYzczTEvMJgci\r\nm4Olj2uxPi+GwhAIfBYnsbqTZ2f3gn2Za3lqoiZ3wX0VmxFeWw9umxZ7q5HC\r\nD0HbUKUn4hJnlKSKB5jcjI0hqTWOXLrh3c6MeUh/9yhbJyEb5VaPcfSH8cfW\r\nmUhUgK91ICQGFb/40xnD6ZKAcGD7fHuCYIYyN9qP555l39Ils5aRRzjlnsoF\r\nVCSfXLHE9Auwsu2rm2wQAffIdclgZbDMp8bdOWUnfRckzI2bVCNveC0C5xGW\r\nnW9Hmfbfx8jSN5onyb9tCiogz64HKFMvE2rrbfhb7YHfFF166zLTMmSJ5niW\r\nVWgCDukGwfG9UBz0GyoARCwtzxyRRnG+Yl4zegWQqdbKFAH+m1RuhmPaNB+U\r\ndQg21jw4WvQULEkGNMv5323l0EJNrZekrrZNXbuvZdeG3AalddKe1gldF6X0\r\nAg1LHdbQ0N7H8utd+uzTMnOpIE1sSPWT+fQpzxn3KWLrcuHISrfrzg5CCV8O\r\nnnWQi3RjVC+gOY0VYoetgqVVLqnZ77Ldk+giuD7IF+Lpy9une2PQfWkZwZEj\r\n7CEfKxgTLRkPi+m9VihEA0k9rll22kUefEo=\r\n=yNhi\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"preset":"jest-expo-enzyme"},"main":"build/index.js","types":"build/index.d.ts","readme":"# jest-expo-enzyme\n\nA [Jest](https://facebook.github.io/jest/) preset that enables you to test your universal Expo & React elements with the [**Enzyme**](https://airbnb.io/enzyme/) testing library.\n\nThe default preset extends `jest-expo` which means it will run **iOS, Android, and web** platforms with the recommended Enzyme configs for web and native. Notice that we omit the `node` runner because SSR environments don't need to test how virtual DOM is rendered.\n\n## Installation\n\n- `yarn add jest-expo-enzyme --dev` or `npm i jest-expo-enzyme --save-dev`\n- Add the following config to `package.json`:\n\n  ```js\n  \"scripts\": {\n    \"test\": \"jest\",\n  },\n  \"jest\": {\n    \"preset\": \"jest-expo-enzyme\"\n  }\n  ```\n\n- Create a `__tests__` directory anywhere you like and a `Example-test.js` file inside of it, and add this code:\n\n  ```js\n  it('works', () => {\n    expect(1).toBe(1);\n  });\n  ```\n\n- Run `yarn test` or `npm test` and it should pass\n\n## Enzyme Example\n\nThe main benefit of using this preset is to get universal Enzyme support for testing your virtual DOM. Here is a basic example of testing how the `backgroundColor` property of a View style is rendered across iOS, Android, and web.\n\n```js\nimport { shallow } from 'enzyme';\nimport React from 'react';\nimport { View, StyleSheet, Platform } from 'react-native';\n\nit(`renders a view with a custom background`, () => {\n  const component = shallow(<View style={{ backgroundColor: 'rgba(0,0,0,0.5)' }} />);\n  // To debug your component use this:\n  console.log('Component:', component.debug({ verbose: true }));\n\n  // When snapshot testing, you should always try and be as concise as possible\n  // here we are extracting the style prop from `View` on native and `div` on web\n  const prop = component.find(Platform.select({ default: 'View', web: 'div' })).prop('style');\n\n  // Flatten the style so we can read it as an object\n  const style = StyleSheet.flatten(prop);\n\n  /**\n   * Android: exports[`renders a view with a custom background 1`] = `\"rgba(0,0,0,0.5)\"`;\n   * iOS: exports[`renders a view with a custom background 1`] = `\"rgba(0,0,0,0.5)\"`;\n   * web: exports[`renders a view with a custom background 1`] = `\"rgba(0,0,0,0.50)\"`;\n   */\n  expect(style.backgroundColor).toMatchSnapshot();\n});\n```\n\n## Customization\n\nWhen constructing your tests you will more than likely want to build them one platform at a time. To do this you'll want to create a `jest.config.js` with multiple platforms.\n\nThis is done by specifying a separate Jest config in the `projects` field of your custom Jest config. The `withEnzyme` method's purpose is to let you augment each single-platform Jest config with the configuration fields needed to support Enzyme.\n\nThis is why method `withEnzyme` exists.\n\nYou can use `withEnzyme` to add Enzyme support to an existing Jest config (**important:** this is only officially supported with Jest configs provided by `jest-expo`; mixing with other configs may not work as expected). Also use a custom serializer for the React Native **StyleSheet** API, which will make snapshot tests cleaner and easier to read.\n\n### Usage\n\n1. Create a `jest.config.js` in your root directory and delete the `jest` field in your `package.json`. You can also create any `js` file and pass it to the Jest CLI with the `-c` flag, ex: `yarn jest -c custom.config.js`.\n2. Import the platforms you want to test and add Enzyme support:\n\n```js\nconst { withEnzyme } = require('jest-expo-enzyme');\n\nmodule.exports = {\n  projects: [\n    // Skipping Node because we want to test DOM presets only\n    withEnzyme(require('jest-expo/ios/jest-preset')),\n    withEnzyme(require('jest-expo/android/jest-preset')),\n    // The Enzyme support added to web is different from that added to native, which `withEnzyme` handles\n    // Luckily you won't have to do anything special because it reads the platform from\n    // `haste.defaultPlatform` of the provided Jest config\n    withEnzyme(require('jest-expo/web/jest-preset')),\n  ],\n};\n```\n\n3. Run your tests with this new preset!\n\n### Snapshots\n\n`jest-expo-enzyme` wraps `jest-expo` which means you get access to the advanced multi-platform snapshot system required for truly testing your universal application code.\n\nHere is an example output:\n\n|- `View-test.tsx`\n|-- `__snapshots__/View-test.tsx.snap.android`\n|-- `__snapshots__/View-test.tsx.snap.ios`\n|-- `__snapshots__/View-test.tsx.snap.node`\n|-- `__snapshots__/View-test.tsx.snap.web`\n\n### Extensions\n\nTo test specific platforms you can use the following extensions:\n\n- iOS: `-test.ios.*`, `-test.native.*`\n- Android: `-test.android.*`, `-test.native.*`\n- web: `-test.web.*`\n- Node: `-test.node.*`, `-test.web.*`\n","gitHead":"957cf0793ac316152e694cbe352953e07bffcb45","scripts":{"lint":"expo-module lint","test":"expo-module test","build":"expo-module build","clean":"expo-module clean","prepare":"expo-module prepare","expo-module":"expo-module","prepublishOnly":"expo-module prepublishOnly"},"_npmUser":{"name":"tsapeta","email":"npm@tsapeta.com"},"repository":{"url":"git://github.com/expo/expo.git","type":"git","directory":"packages/jest-expo-enzyme"},"_npmVersion":"8.17.0","description":"A Jest preset that enables you to test your universal Expo & React elements with the Enzyme testing library.","directories":{},"sideEffects":true,"_nodeVersion":"16.16.0","dependencies":{"chalk":"^2.4.2","enzyme":"~3.11.0","jest-expo":"~46.0.0","jest-enzyme":"~7.1.2","enzyme-to-json":"~3.5.0","jest-canvas-mock":"~2.2.0","react-test-renderer":"~18.1.0","@wojtekmaj/enzyme-adapter-react-17":"^0.6.3"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"@types/enzyme":"^3.10.3","expo-module-scripts":"^3.0.0","@types/enzyme-adapter-react-16":"~1.0.6"},"_npmOperationalInternal":{"tmp":"tmp/jest-expo-enzyme_1.4.1_1666713631846_0.6999017952401567","host":"s3://npm-registry-packages"}},"1.4.2":{"name":"jest-expo-enzyme","version":"1.4.2","keywords":["react-native","react-native-web","enzyme","jest","testing","react-test-renderer","react","universal"],"license":"MIT","_id":"jest-expo-enzyme@1.4.2","maintainers":[{"name":"christopherwalter","email":"chris@christopherwalter.com"},{"name":"kbrandwijk","email":"kim.brandwijk@gmail.com"},{"name":"fiber-god","email":"datwheat@gmail.com"},{"name":"ide","email":"ide+npm@jameside.com"},{"name":"brentvatne","email":"brentvatne@gmail.com"},{"name":"evanbacon","email":"baconbrix@gmail.com"},{"name":"quinlanj","email":"quinlanjung@gmail.com"},{"name":"expoadmin","email":"support@expo.io"},{"name":"tsapeta","email":"npm@tsapeta.com"},{"name":"dsokal","email":"dominiksokal@gmail.com"},{"name":"tcdavis","email":"tc@expo.io"},{"name":"exponent","email":"exponent.team@gmail.com"},{"name":"wschurman","email":"wschurman@gmail.com"},{"name":"wkozyra","email":"wojciech.kozyra@swmansion.com"},{"name":"bycedric","email":"me@bycedric.com"},{"name":"lukmccall","email":"kosmatylukasz@gmail.com"},{"name":"jonsamp","email":"sampjon@gmail.com"},{"name":"princefleaswallow","email":"mhampton@hey.com"},{"name":"andyboythekid","email":"andydevs123@gmail.com"},{"name":"kudochien","email":"ckchien@gmail.com"}],"homepage":"https://github.com/expo/expo/tree/main/packages/jest-expo-enzyme","bugs":{"url":"https://github.com/expo/expo/issues"},"dist":{"shasum":"530473056bee39a42566df0cc0501b488c18af21","tarball":"https://registry.npmjs.org/jest-expo-enzyme/-/jest-expo-enzyme-1.4.2.tgz","fileCount":19,"integrity":"sha512-fi+SJQcU5PQXkU4qrD3Gji7+Fax4uP3w37KJJq8imtk+1T6ApC8BnY4pyQWhkClkcB9j54doPJyALexxtL3nmg==","signatures":[{"sig":"MEQCIFGB4/033obu75m6rA5TSrtdglOt5DqnuYn1BYPdTTCHAiBkydv3tRDimhtneli/hSWGfJAmbekfe4WiDc1tz7VdRA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27961,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWz0tACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrBCQ//RxzrZruwWmcGCW7mXpLQZeUFY4a+ixPNlEuXBg87SwldMApn\r\n47odpTkCxEpT2dk6gOaMQyBRRIa3jEtsfPc9pgnEPqNFZLV2v+TeFv+sTbal\r\n/0OtbC+eio1pzzaHnVqbPS2aUkZ42sjavOkKLRYKXME8zm3M7emFACNNI/s9\r\n6w1YpiLFqfKNli1RJs0pZiSAUWp/vFxQVnv4rsktCSY7Lx/Ay0CHJovmy19M\r\nEMADdxL77iMmtTkUTn4Sh//D+UAMdsSD1Q4L3EsO9uQd/AADuh5ehPPkc/fz\r\nSBGEFEHUkCJwgvQ3UtxGnKXLa8gzapqM8JOahK14riUHoHrWB0V5hNfp2dFs\r\nhGCxAYNv5v/Csm1WaYP4sE7+MW2Nh+aqVYwP7aZmH6LzahYfnsGoANgImkAR\r\nEwwaxqaMqnY0OQlj+eCWxzcCPMuGXJNpgOasY1BXmqktNQ6XoDu913y8ObRZ\r\n7nrxSB5nb8rwERM9NR8iIbin3DHp3D0CjTd0tl0SDt4nXPjxCfw2R0hmvqmq\r\ngShrw7xU0+QUElB4rezXENeoiBne8WjjKy3soNQruiWs1sJZetIXCXzAU5J5\r\nRye/CeQ+tqR0rG4nAYjloFFYdSL9ME2FTOj/xAb2PXJ13fnDxBWt/JbYBwyH\r\nPhonQr2XBN9zXo793psars4+HgZi+TImdps=\r\n=Z6VS\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"preset":"jest-expo-enzyme"},"main":"build/index.js","types":"build/index.d.ts","readme":"# jest-expo-enzyme\n\nA [Jest](https://facebook.github.io/jest/) preset that enables you to test your universal Expo & React elements with the [**Enzyme**](https://airbnb.io/enzyme/) testing library.\n\nThe default preset extends `jest-expo` which means it will run **iOS, Android, and web** platforms with the recommended Enzyme configs for web and native. Notice that we omit the `node` runner because SSR environments don't need to test how virtual DOM is rendered.\n\n## Installation\n\n- `yarn add jest-expo-enzyme --dev` or `npm i jest-expo-enzyme --save-dev`\n- Add the following config to `package.json`:\n\n  ```js\n  \"scripts\": {\n    \"test\": \"jest\",\n  },\n  \"jest\": {\n    \"preset\": \"jest-expo-enzyme\"\n  }\n  ```\n\n- Create a `__tests__` directory anywhere you like and a `Example-test.js` file inside of it, and add this code:\n\n  ```js\n  it('works', () => {\n    expect(1).toBe(1);\n  });\n  ```\n\n- Run `yarn test` or `npm test` and it should pass\n\n## Enzyme Example\n\nThe main benefit of using this preset is to get universal Enzyme support for testing your virtual DOM. Here is a basic example of testing how the `backgroundColor` property of a View style is rendered across iOS, Android, and web.\n\n```js\nimport { shallow } from 'enzyme';\nimport React from 'react';\nimport { View, StyleSheet, Platform } from 'react-native';\n\nit(`renders a view with a custom background`, () => {\n  const component = shallow(<View style={{ backgroundColor: 'rgba(0,0,0,0.5)' }} />);\n  // To debug your component use this:\n  console.log('Component:', component.debug({ verbose: true }));\n\n  // When snapshot testing, you should always try and be as concise as possible\n  // here we are extracting the style prop from `View` on native and `div` on web\n  const prop = component.find(Platform.select({ default: 'View', web: 'div' })).prop('style');\n\n  // Flatten the style so we can read it as an object\n  const style = StyleSheet.flatten(prop);\n\n  /**\n   * Android: exports[`renders a view with a custom background 1`] = `\"rgba(0,0,0,0.5)\"`;\n   * iOS: exports[`renders a view with a custom background 1`] = `\"rgba(0,0,0,0.5)\"`;\n   * web: exports[`renders a view with a custom background 1`] = `\"rgba(0,0,0,0.50)\"`;\n   */\n  expect(style.backgroundColor).toMatchSnapshot();\n});\n```\n\n## Customization\n\nWhen constructing your tests you will more than likely want to build them one platform at a time. To do this you'll want to create a `jest.config.js` with multiple platforms.\n\nThis is done by specifying a separate Jest config in the `projects` field of your custom Jest config. The `withEnzyme` method's purpose is to let you augment each single-platform Jest config with the configuration fields needed to support Enzyme.\n\nThis is why method `withEnzyme` exists.\n\nYou can use `withEnzyme` to add Enzyme support to an existing Jest config (**important:** this is only officially supported with Jest configs provided by `jest-expo`; mixing with other configs may not work as expected). Also use a custom serializer for the React Native **StyleSheet** API, which will make snapshot tests cleaner and easier to read.\n\n### Usage\n\n1. Create a `jest.config.js` in your root directory and delete the `jest` field in your `package.json`. You can also create any `js` file and pass it to the Jest CLI with the `-c` flag, ex: `yarn jest -c custom.config.js`.\n2. Import the platforms you want to test and add Enzyme support:\n\n```js\nconst { withEnzyme } = require('jest-expo-enzyme');\n\nmodule.exports = {\n  projects: [\n    // Skipping Node because we want to test DOM presets only\n    withEnzyme(require('jest-expo/ios/jest-preset')),\n    withEnzyme(require('jest-expo/android/jest-preset')),\n    // The Enzyme support added to web is different from that added to native, which `withEnzyme` handles\n    // Luckily you won't have to do anything special because it reads the platform from\n    // `haste.defaultPlatform` of the provided Jest config\n    withEnzyme(require('jest-expo/web/jest-preset')),\n  ],\n};\n```\n\n3. Run your tests with this new preset!\n\n### Snapshots\n\n`jest-expo-enzyme` wraps `jest-expo` which means you get access to the advanced multi-platform snapshot system required for truly testing your universal application code.\n\nHere is an example output:\n\n|- `View-test.tsx`\n|-- `__snapshots__/View-test.tsx.snap.android`\n|-- `__snapshots__/View-test.tsx.snap.ios`\n|-- `__snapshots__/View-test.tsx.snap.node`\n|-- `__snapshots__/View-test.tsx.snap.web`\n\n### Extensions\n\nTo test specific platforms you can use the following extensions:\n\n- iOS: `-test.ios.*`, `-test.native.*`\n- Android: `-test.android.*`, `-test.native.*`\n- web: `-test.web.*`\n- Node: `-test.node.*`, `-test.web.*`\n","gitHead":"59081bb17e727b10f2a00cd07bb45cd283a6f6a5","scripts":{"lint":"expo-module lint","test":"expo-module test","build":"expo-module build","clean":"expo-module clean","prepare":"expo-module prepare","expo-module":"expo-module","prepublishOnly":"expo-module prepublishOnly"},"_npmUser":{"name":"brentvatne","email":"brentvatne@gmail.com"},"repository":{"url":"git://github.com/expo/expo.git","type":"git","directory":"packages/jest-expo-enzyme"},"_npmVersion":"8.19.2","description":"A Jest preset that enables you to test your universal Expo & React elements with the Enzyme testing library.","directories":{},"sideEffects":true,"_nodeVersion":"16.16.0","dependencies":{"chalk":"^2.4.2","enzyme":"~3.11.0","jest-expo":"~47.0.0","jest-enzyme":"~7.1.2","enzyme-to-json":"~3.5.0","jest-canvas-mock":"~2.2.0","react-test-renderer":"~18.1.0","@wojtekmaj/enzyme-adapter-react-17":"^0.6.3"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"@types/enzyme":"^3.10.3","expo-module-scripts":"^3.0.0","@types/enzyme-adapter-react-16":"~1.0.6"},"_npmOperationalInternal":{"tmp":"tmp/jest-expo-enzyme_1.4.2_1666923821040_0.18109082851334768","host":"s3://npm-registry-packages"}},"1.5.0":{"name":"jest-expo-enzyme","version":"1.5.0","keywords":["react-native","react-native-web","enzyme","jest","testing","react-test-renderer","react","universal"],"license":"MIT","_id":"jest-expo-enzyme@1.5.0","maintainers":[{"name":"christopherwalter","email":"chris@christopherwalter.com"},{"name":"kbrandwijk","email":"kim.brandwijk@gmail.com"},{"name":"fiber-god","email":"datwheat@gmail.com"},{"name":"ide","email":"ide+npm@jameside.com"},{"name":"brentvatne","email":"brentvatne@gmail.com"},{"name":"evanbacon","email":"baconbrix@gmail.com"},{"name":"quinlanj","email":"quinlanjung@gmail.com"},{"name":"expoadmin","email":"support@expo.io"},{"name":"tsapeta","email":"npm@tsapeta.com"},{"name":"dsokal","email":"dominiksokal@gmail.com"},{"name":"tcdavis","email":"tc@expo.io"},{"name":"exponent","email":"exponent.team@gmail.com"},{"name":"wschurman","email":"wschurman@gmail.com"},{"name":"wkozyra","email":"wojciech.kozyra@swmansion.com"},{"name":"bycedric","email":"me@bycedric.com"},{"name":"lukmccall","email":"kosmatylukasz@gmail.com"},{"name":"jonsamp","email":"sampjon@gmail.com"},{"name":"princefleaswallow","email":"mhampton@hey.com"},{"name":"andyboythekid","email":"andydevs123@gmail.com"},{"name":"kudochien","email":"ckchien@gmail.com"}],"homepage":"https://github.com/expo/expo/tree/main/packages/jest-expo-enzyme","bugs":{"url":"https://github.com/expo/expo/issues"},"dist":{"shasum":"9ae8925fd12c36023d6b51cc7765296abfaffc6e","tarball":"https://registry.npmjs.org/jest-expo-enzyme/-/jest-expo-enzyme-1.5.0.tgz","fileCount":19,"integrity":"sha512-rSjTs3rBzzpLCp3CgK1fyBpIMfD5jEUk6vOPiseHuLUKg6MbVT1E0fDNUvVWUE0JkS1tgwEwNaDoRepEy2U5Ig==","signatures":[{"sig":"MEUCIQCQmlb5ZhF5ULPCrAVE7oMu6jg0907/36gwqFPRJgQI6AIgFxYdzazxASu/lvQJChyVbeU82OzS/HSE4pYCdGKV1bA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":28148,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjXerYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqscRAApPE5945ON/FaQzJ2loQee6DIb736JWPmH9dIpmpPUGU/ifQf\r\n+VDm41um16tYLAeauy91WRjZ+klpBZo8DbykDUJM7F2iUR6ZM8rXYQm124S2\r\nnB9ZmFv0nFjBptb54+HRzoS+IKuZjWXF0efucaQD5g99QIjxXKq2ZdFQgliz\r\nPos/kYV8LIK/86G/TtrhjELkwATIumeI+hTD2NeeyBDhAQ4Y/v9PJtI5ed42\r\nM4r6/H0xWS5fX7YDdQsvN+hb9wSRmlxgjOPgeaS2dJKxSmQW6QDueLxJOXXl\r\noU83flric5ydzJFOvVAbECZ3+0JSpuXdDzP6aF3FZCIKR7vvN2RllGK6hxGw\r\nhhG6I4OFHekeqEsUhdMnYL7myy6/k4A0wH2Ec4qdeX34OyzLlBhlwDEbXPVs\r\nuhFDaMd6sEM0uzwDbupTUDm+tMLyq7YASQlK60O5iip4ewYAY1sT8j9SmLFF\r\n4SSKsgfzpTcFvq4xB+222gJPJ5PKU6+FWS6QWmUyEtDEnQjW5ZPk13XzAOpZ\r\nkABcsUr1Kn5YKxLz/ibmvg+EdYnsZ/rV48YI/NvX65BQT5psvAIm/B72h/Ul\r\n7plgI9gXqoSxna4wL7GVS/XX0KqRESlSsrCnELnnDjcRxxUhrH7q6aiR3CfV\r\nJPFCkvZ3A+vb06XNnS83f6y6P7MZHhX1380=\r\n=ZVAj\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"preset":"jest-expo-enzyme"},"main":"build/index.js","types":"build/index.d.ts","readme":"# jest-expo-enzyme\n\n> ⚠️ This library is deprecated, Enzyme does not support React 18+. Use [@testing-library/react-native](https://testing-library.com/docs/react-native-testing-library/intro) instead.\n\nA [Jest](https://facebook.github.io/jest/) preset that enables you to test your universal Expo & React elements with the [**Enzyme**](https://airbnb.io/enzyme/) testing library.\n\nThe default preset extends `jest-expo` which means it will run **iOS, Android, and web** platforms with the recommended Enzyme configs for web and native. Notice that we omit the `node` runner because SSR environments don't need to test how virtual DOM is rendered.\n\n## Installation\n\n- `yarn add jest-expo-enzyme --dev` or `npm i jest-expo-enzyme --save-dev`\n- Add the following config to `package.json`:\n\n  ```js\n  \"scripts\": {\n    \"test\": \"jest\",\n  },\n  \"jest\": {\n    \"preset\": \"jest-expo-enzyme\"\n  }\n  ```\n\n- Create a `__tests__` directory anywhere you like and a `Example-test.js` file inside of it, and add this code:\n\n  ```js\n  it('works', () => {\n    expect(1).toBe(1);\n  });\n  ```\n\n- Run `yarn test` or `npm test` and it should pass\n\n## Enzyme Example\n\nThe main benefit of using this preset is to get universal Enzyme support for testing your virtual DOM. Here is a basic example of testing how the `backgroundColor` property of a View style is rendered across iOS, Android, and web.\n\n```js\nimport { shallow } from 'enzyme';\nimport React from 'react';\nimport { View, StyleSheet, Platform } from 'react-native';\n\nit(`renders a view with a custom background`, () => {\n  const component = shallow(<View style={{ backgroundColor: 'rgba(0,0,0,0.5)' }} />);\n  // To debug your component use this:\n  console.log('Component:', component.debug({ verbose: true }));\n\n  // When snapshot testing, you should always try and be as concise as possible\n  // here we are extracting the style prop from `View` on native and `div` on web\n  const prop = component.find(Platform.select({ default: 'View', web: 'div' })).prop('style');\n\n  // Flatten the style so we can read it as an object\n  const style = StyleSheet.flatten(prop);\n\n  /**\n   * Android: exports[`renders a view with a custom background 1`] = `\"rgba(0,0,0,0.5)\"`;\n   * iOS: exports[`renders a view with a custom background 1`] = `\"rgba(0,0,0,0.5)\"`;\n   * web: exports[`renders a view with a custom background 1`] = `\"rgba(0,0,0,0.50)\"`;\n   */\n  expect(style.backgroundColor).toMatchSnapshot();\n});\n```\n\n## Customization\n\nWhen constructing your tests you will more than likely want to build them one platform at a time. To do this you'll want to create a `jest.config.js` with multiple platforms.\n\nThis is done by specifying a separate Jest config in the `projects` field of your custom Jest config. The `withEnzyme` method's purpose is to let you augment each single-platform Jest config with the configuration fields needed to support Enzyme.\n\nThis is why method `withEnzyme` exists.\n\nYou can use `withEnzyme` to add Enzyme support to an existing Jest config (**important:** this is only officially supported with Jest configs provided by `jest-expo`; mixing with other configs may not work as expected). Also use a custom serializer for the React Native **StyleSheet** API, which will make snapshot tests cleaner and easier to read.\n\n### Usage\n\n1. Create a `jest.config.js` in your root directory and delete the `jest` field in your `package.json`. You can also create any `js` file and pass it to the Jest CLI with the `-c` flag, ex: `yarn jest -c custom.config.js`.\n2. Import the platforms you want to test and add Enzyme support:\n\n```js\nconst { withEnzyme } = require('jest-expo-enzyme');\n\nmodule.exports = {\n  projects: [\n    // Skipping Node because we want to test DOM presets only\n    withEnzyme(require('jest-expo/ios/jest-preset')),\n    withEnzyme(require('jest-expo/android/jest-preset')),\n    // The Enzyme support added to web is different from that added to native, which `withEnzyme` handles\n    // Luckily you won't have to do anything special because it reads the platform from\n    // `haste.defaultPlatform` of the provided Jest config\n    withEnzyme(require('jest-expo/web/jest-preset')),\n  ],\n};\n```\n\n3. Run your tests with this new preset!\n\n### Snapshots\n\n`jest-expo-enzyme` wraps `jest-expo` which means you get access to the advanced multi-platform snapshot system required for truly testing your universal application code.\n\nHere is an example output:\n\n|- `View-test.tsx`\n|-- `__snapshots__/View-test.tsx.snap.android`\n|-- `__snapshots__/View-test.tsx.snap.ios`\n|-- `__snapshots__/View-test.tsx.snap.node`\n|-- `__snapshots__/View-test.tsx.snap.web`\n\n### Extensions\n\nTo test specific platforms you can use the following extensions:\n\n- iOS: `-test.ios.*`, `-test.native.*`\n- Android: `-test.android.*`, `-test.native.*`\n- web: `-test.web.*`\n- Node: `-test.node.*`, `-test.web.*`\n","gitHead":"779ad6af070d07a14f371e3106f02ddd1b093538","scripts":{"lint":"expo-module lint","test":"expo-module test","build":"expo-module build","clean":"expo-module clean","prepare":"expo-module prepare","expo-module":"expo-module","prepublishOnly":"expo-module prepublishOnly"},"_npmUser":{"name":"brentvatne","email":"brentvatne@gmail.com"},"repository":{"url":"git://github.com/expo/expo.git","type":"git","directory":"packages/jest-expo-enzyme"},"_npmVersion":"8.19.2","description":"A Jest preset that enables you to test your universal Expo & React elements with the Enzyme testing library.","directories":{},"sideEffects":true,"_nodeVersion":"16.16.0","dependencies":{"chalk":"^2.4.2","enzyme":"~3.11.0","jest-expo":"~47.0.0","jest-enzyme":"~7.1.2","enzyme-to-json":"~3.5.0","jest-canvas-mock":"~2.2.0","react-test-renderer":"~18.1.0","@wojtekmaj/enzyme-adapter-react-17":"^0.6.3"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"@types/enzyme":"^3.10.3","expo-module-scripts":"^3.0.0","@types/enzyme-adapter-react-16":"~1.0.6"},"_npmOperationalInternal":{"tmp":"tmp/jest-expo-enzyme_1.5.0_1667099352796_0.4368959007262767","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-09-14T07:46:00.247Z","modified":"2026-09-23T11:28:42.504Z","0.0.0-rc.0":"2019-09-14T07:46:00.411Z","0.0.0":"2019-09-19T13:17:45.153Z","0.0.1":"2019-11-12T21:14:48.278Z","1.0.0":"2020-02-24T20:18:00.927Z","1.0.1":"2020-05-27T16:00:29.585Z","1.0.2":"2020-05-29T10:49:22.718Z","1.0.3":"2020-08-18T14:44:15.707Z","1.0.4":"2020-11-17T05:02:14.076Z","1.1.0":"2021-03-10T01:44:41.418Z","1.1.1":"2021-04-01T23:18:43.899Z","1.1.2":"2021-04-13T19:59:24.041Z","1.2.0":"2021-06-16T19:31:49.340Z","1.2.1":"2021-07-08T23:46:43.868Z","1.2.2":"2021-09-28T15:23:34.970Z","1.2.3":"2021-10-01T23:08:19.984Z","1.2.4":"2021-10-15T18:51:12.320Z","1.2.5":"2021-12-03T21:45:07.628Z","1.3.0":"2022-04-18T15:14:25.358Z","1.4.0":"2022-07-07T23:22:38.201Z","1.4.1":"2022-10-25T16:00:32.015Z","1.4.2":"2022-10-28T02:23:41.225Z","1.5.0":"2022-10-30T03:09:12.950Z"},"bugs":{"url":"https://github.com/expo/expo/issues"},"license":"MIT","homepage":"https://github.com/expo/expo/tree/main/packages/jest-expo-enzyme","keywords":["react-native","react-native-web","enzyme","jest","testing","react-test-renderer","react","universal"],"repository":{"url":"git://github.com/expo/expo.git","type":"git","directory":"packages/jest-expo-enzyme"},"description":"A Jest preset that enables you to test your universal Expo & React elements with the Enzyme testing library.","maintainers":[{"email":"ide+npm@jameside.com","name":"ide"},{"email":"brentvatne@gmail.com","name":"brentvatne"},{"email":"support@expo.io","name":"expoadmin"},{"email":"exponent.team@gmail.com","name":"exponent"},{"email":"me@bycedric.com","name":"bycedric"},{"email":"ckchien@gmail.com","name":"kudochien"},{"email":"hughesno1@gmail.com","name":"alanhughes"},{"email":"npm@tsapeta.com","name":"tsapeta"},{"email":"brent+expobotnpm@expo.io","name":"expo-bot"},{"email":"phil@kitten.sh","name":"philpl"},{"email":"ccheever@gmail.com","name":"ccheever"},{"email":"sz.dziedz@gmail.com","name":"szdziedzic"},{"email":"wschurman@gmail.com","name":"wschurman"}],"readme":"","readmeFilename":""}