{"_id":"cypress-react-router","_rev":"11-f5cf28d85ee16de488f68ed0f7ce8f47","name":"cypress-react-router","dist-tags":{"latest":"2.0.1","next":"2.0.0-0"},"versions":{"0.1.1":{"name":"cypress-react-router","author":{"name":"Maurice de Beijer"},"version":"0.1.1","license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","engines":{"node":">=10"},"scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test --passWithNoTests","lint":"tsdx lint","prepare":"tsdx build","size":"size-limit","analyze":"size-limit --why"},"peerDependencies":{"cypress":">= 6","react":">=16"},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"module":"dist/cypress-react-router.esm.js","size-limit":[{"path":"dist/cypress-react-router.cjs.production.min.js","limit":"10 KB"},{"path":"dist/cypress-react-router.esm.js","limit":"10 KB"}],"devDependencies":{"@size-limit/preset-small-lib":"^4.9.1","@types/react":"^17.0.0","@types/react-dom":"^17.0.0","@types/react-router-dom":"^5.1.6","cypress":"^6.2.0","husky":"^4.3.6","react":"^17.0.1","react-dom":"^17.0.1","react-router-dom":"^5.2.0","size-limit":"^4.9.1","tsdx":"^0.14.1","tslib":"^2.0.3","typescript":"^4.1.3"},"gitHead":"bafda267a4d063afb0443dc023c700626f032ae4","description":"Congrats! You just saved yourself hours of work by bootstrapping this project with TSDX. Let’s get you oriented with what’s here and how to use it.","_id":"cypress-react-router@0.1.1","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-z+GcyEDdc+degm9G3iZ+Z9K8VRNts46gjjotCqTW54WzlmJH2lI2gQgLByHB1WQ7XNODZGU9onYKvnZXBaRoeg==","shasum":"2fea3c84795ae26a4ccb5521b40ba119f0ebcf46","tarball":"https://registry.npmjs.org/cypress-react-router/-/cypress-react-router-0.1.1.tgz","fileCount":16,"unpackedSize":13203,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf7KaUCRA9TVsSAnZWagAAHhAP/jsq+7iWgCQXlpL7SRqk\nTLjRKWROUIszofnUqFBKsdMrX+pHT9OXbHJrJeph2tN3G0s6Bc00zFsMHZ3y\nX/BB9K4CUuNbStAzJaF/N7RPq1kg3a5hG84n7HV3qeY1FT/hpvvb4wtLK4oD\nVHVoi+WimCrlpq7zNUyEuSCJBbgRrDo/RY44DYw+gWgKmfHxK5Cu7mFVJpgz\nhLiCH1LetmPH3T73J8URB2rxr3OLwnLt7ahPrEK3HjiHOoh26P2zCmlO5Py1\nK6Of7fXNGKWWYzOpMmbNkxS3kgj8soUK76qavck9neuVrcg8X4vBiNHsyZCN\nnG724iSOnix9pUQsEZdQfdsjCmDyAD+mJA92uXkUqnkAjdetzxYQkTHPrnSk\njbnMe19thwLzXLuka0URJ/5vlog4y6GsZeMsDVpT9tpow2sU7Q3pmnyPNYn2\najy2gCRJzAVfVIq28z2VUI6XcHe/UTAO9gt8VMl9nZ4f+Pr40C7QKm0momIK\ns1pldpmUvUI8GZ+Vhk3JqXdq0fDsUBwzjchy3L2Szd5ZM1OxJ8aLD4rvxpgb\nkSehxdH/NRa/ggvDWo0ZCjqYwXPbJTTPKgt25V/kuYqGThMZxosrTXYjxXX4\nlsWPR0WeQvrfR9tZ7666aIBb3oYKq/3g2lV8nQYeB+wY7nd5WYPFPYaVLgoN\n4L2p\r\n=3NCm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE74tgtr6KgsIuNFOdlasyz0Di4Acvknddb3Lhw/sG7QAiEA0UmAYdecR3wB1S4971Bwktq1uOUsxSgYilJKLqRDv6A="}]},"_npmUser":{"name":"mauricedb","email":"maurice.de.beijer@gmail.com"},"directories":{},"maintainers":[{"name":"mauricedb","email":"maurice.de.beijer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cypress-react-router_0.1.1_1609344659730_0.44385492749207556"},"_hasShrinkwrap":false},"0.2.0":{"name":"cypress-react-router","author":{"name":"Maurice de Beijer"},"version":"0.2.0","license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","engines":{"node":">=10"},"scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test --passWithNoTests","compile":"tsc --noEmit","lint":"tsdx lint","prepare":"tsdx build","size":"size-limit","analyze":"size-limit --why"},"peerDependencies":{"cypress":">= 6","react":">=16"},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"module":"dist/cypress-react-router.esm.js","size-limit":[{"path":"dist/cypress-react-router.cjs.production.min.js","limit":"10 KB"},{"path":"dist/cypress-react-router.esm.js","limit":"10 KB"}],"devDependencies":{"@size-limit/preset-small-lib":"^4.9.1","@types/react":"^17.0.0","@types/react-dom":"^17.0.0","@types/react-router-dom":"^5.1.6","cypress":"^6.2.0","husky":"^4.3.6","react":"^17.0.1","react-dom":"^17.0.1","react-router-dom":"^5.2.0","size-limit":"^4.9.1","tsdx":"^0.14.1","tslib":"^2.0.3","typescript":"^4.1.3"},"gitHead":"3e0bd22a83ab3b44632275cbad0a1138c92c3aea","description":"Congrats! You just saved yourself hours of work by bootstrapping this project with TSDX. Let’s get you oriented with what’s here and how to use it.","_id":"cypress-react-router@0.2.0","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-VPfHJWGi69Pjj6aapwcIwczoGKjCg3EktN0dl0VTHSZI0ox2QuXkpz5gNJ7ggUijpxu7wddlJBSNYPdtJE509A==","shasum":"44c7523c8fa8f56dfd45a433c0843f959ed2cc8c","tarball":"https://registry.npmjs.org/cypress-react-router/-/cypress-react-router-0.2.0.tgz","fileCount":18,"unpackedSize":20082,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf7LLCCRA9TVsSAnZWagAAW5kP/0xfRBvr2b8sBBb6R9P+\nIf0LiLSNHyLb/K2y84IrUhfhXxDiiuwXwTj70LiRgG1/WKyEX8fHwT0dkoK6\nIDO2aGUGOt932jgaDurvhZWaBRmXMiwZqmjYVauxfXmTAOGXAo0evzyQNZAx\nsqjh4U46FISxmEqiU4QYSVulVSpyjR/eLyqEtGGUVMjzURfYLCMKjSOfOGYy\nfOqpcczsdoOKsgew3YydzrWP5qpAi1jJgBsWSG5oqf8MTwHa8oqogpc7tnHj\n2aI3ig5XD0WjuBEYuQDPpSK9WC2Ygz373ItiAbfJx6z89zKJgeIynwv0TDIs\nO66w1u69P22WXM/IjJHBwm2pa0nFKuVeZZMGdslWNW8t/VIAfv/2zD5kqSMw\nuJrOrbaOEZNF7uAEJGgy8tAJoOhMN9DO2R/FpJhTeheCLJ3CCOyZwufGrYxd\nQbslX9UAJF4ISZTvbkRSQXb9GuzNhdrD8TGGrej8/xYvPnt8db8YQ/8Mo3dL\nMEEs63/3HH1ejERO5QKaVvhtHai5+oMrZzYrKe22HE8UuJFQeODScDVtEDcd\nJp+8x0YbBciaWVX10QljFg4valBEpqFeRU59vkTEMw9bHQtfrZkG7sdjF/+H\nwSCHnTHVGIqngMuKc2OfOabwl3Z0RnLPySi7SwzQVgBsXg5PXLA8+rD/sEDJ\nfELM\r\n=osxM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDdkQnmDwNh5CFYWRkHApBBdArx9WNaKfYEi0GAwc4YiAIgVQVXoxPQcsZP4rc25kb/kKF50nCw50e78uzWha+WyOc="}]},"_npmUser":{"name":"mauricedb","email":"maurice.de.beijer@gmail.com"},"directories":{},"maintainers":[{"name":"mauricedb","email":"maurice.de.beijer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cypress-react-router_0.2.0_1609347778446_0.4767150586182638"},"_hasShrinkwrap":false},"0.2.1":{"name":"cypress-react-router","author":{"name":"Maurice de Beijer"},"version":"0.2.1","license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","engines":{"node":">=10"},"scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test --passWithNoTests","compile":"tsc --noEmit","lint":"tsdx lint","prepare":"tsdx build","size":"size-limit","analyze":"size-limit --why"},"peerDependencies":{"cypress":">= 6","react":">=16"},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"module":"dist/cypress-react-router.esm.js","size-limit":[{"path":"dist/cypress-react-router.cjs.production.min.js","limit":"10 KB"},{"path":"dist/cypress-react-router.esm.js","limit":"10 KB"}],"devDependencies":{"@size-limit/preset-small-lib":"^4.9.1","@types/react":"^17.0.0","@types/react-dom":"^17.0.0","@types/react-router-dom":"^5.1.6","cypress":"^6.2.0","husky":"^4.3.6","react":"^17.0.1","react-dom":"^17.0.1","react-router-dom":"^5.2.0","size-limit":"^4.9.1","tsdx":"^0.14.1","tslib":"^2.0.3","typescript":"^4.1.3"},"gitHead":"97859a3fbb64b05d4f87c955e0e952a47b3c0dc7","description":"Congrats! You just saved yourself hours of work by bootstrapping this project with TSDX. Let’s get you oriented with what’s here and how to use it.","_id":"cypress-react-router@0.2.1","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-FHm8uLZMT/YWmA++tg7dYAdzH9ZFcSAHJ7lF66YtMcEQ/CebqCBQFfqGMP8lGZWozoZ8YEcqvkIEbMZyna8CBg==","shasum":"84ffa07383ab52306740409655fb0971c86f77d0","tarball":"https://registry.npmjs.org/cypress-react-router/-/cypress-react-router-0.2.1.tgz","fileCount":18,"unpackedSize":20082,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf7eQ0CRA9TVsSAnZWagAAXC4P/Ax335zZMdP11Du3RML8\nQanNJzkoH08rqghJP6+KuN364BSVlB0kEcK5YZEl/A4sLxeyVmB5WYnStBUP\nvNfI3kH8jGuygFIsAww9b5l+IU/AcvZkufU2MenQHhyScKWUPsyBPm+SL1Gl\nXG9eNVgUKQams4epig2oCWsSbAeEvLS8ntk7bPKew1k7ZucyJnH1mEI1sQ1+\nrLKWk03N3F/INuhJD/XQjvTKGjTnvpUQFKPeXDnlSJGJ2xp7aIK7Bf8UzKWz\nDaNi6pT5rNcOISsaEZLXD9WTx4YK54ZTykjp9XeSTUDCdbMqmNJ81skVoESi\nLoOM6kknRq3O9ccz8aNrpM/8TnT36IfI5KQzWK+IoNrC+aq6lQTLc8ZKAhND\nXleC11AQaeoeq12vNJ3t7O6+Jx/Zur2p8P5kyIttH5Hk0MQ+quXYmi2xqUqY\nU7jkxou5Zeobzb9+2YkzIsAQL9ZbmChWlA5Mf4UGHfh/3lQejAssZmVJvnOb\n98SYSSgmMQcU4OiVeL9M9nnLvaEdycJh8gydzTs6CUyY5Ht4dJs//hUuakI6\niR3RdkhWfbDddOBA9+ZFqqZ3797BJCbpdQw5Psus7ILOPZODwQnXIMryptzy\n4hyXKpddO/oJJXluHdI3jQKsIdSAiLEW+KPwGaODzKIJluRFFasLsovrwLNK\nd5/G\r\n=zLJv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD5OJiXgOlAOHQOEibfqoQ0zNOHpLvKhOuuNY4jq1msmAIhAOgIYnMwHIbWftnzQrAQuapMHXcG2Ij99rFv+yvjGb02"}]},"_npmUser":{"name":"mauricedb","email":"maurice.de.beijer@gmail.com"},"directories":{},"maintainers":[{"name":"mauricedb","email":"maurice.de.beijer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cypress-react-router_0.2.1_1609425972370_0.6417314905736562"},"_hasShrinkwrap":false},"0.2.2":{"name":"cypress-react-router","author":{"name":"Maurice de Beijer"},"version":"0.2.2","license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","engines":{"node":">=10"},"scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test --passWithNoTests","compile":"tsc --noEmit","lint":"tsdx lint","prepare":"tsdx build","size":"size-limit","analyze":"size-limit --why"},"peerDependencies":{"cypress":">= 6","react":">=16"},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"module":"dist/cypress-react-router.esm.js","size-limit":[{"path":"dist/cypress-react-router.cjs.production.min.js","limit":"10 KB"},{"path":"dist/cypress-react-router.esm.js","limit":"10 KB"}],"devDependencies":{"@size-limit/preset-small-lib":"^4.9.1","@types/react":"^17.0.0","@types/react-dom":"^17.0.0","@types/react-router-dom":"^5.1.6","cypress":"^6.2.0","husky":"^4.3.6","react":"^17.0.1","react-dom":"^17.0.1","react-router-dom":"^5.2.0","size-limit":"^4.9.1","tsdx":"^0.14.1","tslib":"^2.0.3","typescript":"^4.1.3"},"gitHead":"fa19b8716f7a6d39ed4311a2cfa1b8c9c966ae98","description":"Congrats! You just saved yourself hours of work by bootstrapping this project with TSDX. Let’s get you oriented with what’s here and how to use it.","_id":"cypress-react-router@0.2.2","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-jhy42G87AzxDAooh8JePhr5QoCKZt3crKuenmRBHXhs3LLJTSPJ/br+AgOGTuWPNkrEHK6WRL3chff8sAcXgtg==","shasum":"7f1c119983e08dedf9d691d8a766bd91c6b10dc1","tarball":"https://registry.npmjs.org/cypress-react-router/-/cypress-react-router-0.2.2.tgz","fileCount":19,"unpackedSize":20309,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf7ehuCRA9TVsSAnZWagAAEE0P/2U+GbOPexD65iul6UpK\nG4ITUBBw7Btphsg77pcSZyAASD6igATlSish1g1YoGw0DJ3XvOMceVSE7go8\nL6jglx1gxflG3tYvTE5IKrZx53E1noUE4aKC8AeM8Kiet/6gy12fAzqzqxvz\nzq5C3IjowUjQ28uAc1efybTXcu8kcdcjqvuXVHUZ+NkFtREar4jVw3pifeTN\nIRN2rKX8Avw7wi0N5JvOyRNu1TbZriLoGhiJeAk0pLHG/NQxCo+46wK7U+ks\n5ATfQ/tr8kM8h/+yaXs+KQKIrbBb20rngUaAe8wgQUd3e4egwQNuMzaueguQ\nLHmx13/2h8tG8kCb8Vm7kv1rqZhXfK7Bcsorqnj7vHHMpZ9O2IR4zlydidCD\nR4LK5EIp1QshBnG1RMnw6Ishk4B24LwT18JAJATu6Nd3Zhq2BGPKmLtA0eVc\nxsa/GbMP+lvlhLB2UV3E0MLbE3pV4NNwrx+ywhAjJixvWQL2eI7VEc1AHFAV\nV4/qO99fO8fa6s3hxMviu4FoPZJ43cZwlzVPXkEmc3UjqwAcTCNDFZLXpMr+\ny6wdHj9qenhXOrQ4C18FecX6vr+D5CQ2b07Y0WZO5PNgPvuM6eIQVQWgLof/\njbkdl4EOgihix8CqIVLq0jJ6SJ8BJjE01kEbLrSMuU8aaIr/n1NFKuO+hEp6\nObis\r\n=LMt9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHIz8aaRKneRXTZ5kCwyHmL25hZqfMXppx0zpCufB+XyAiAO7fSPQ1rrRNNADp9zx1NdXj6+PUpsLKrUm+Zs33OQJA=="}]},"_npmUser":{"name":"mauricedb","email":"maurice.de.beijer@gmail.com"},"directories":{},"maintainers":[{"name":"mauricedb","email":"maurice.de.beijer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cypress-react-router_0.2.2_1609427054014_0.5361231788632741"},"_hasShrinkwrap":false},"0.3.0":{"name":"cypress-react-router","author":{"name":"Maurice de Beijer"},"version":"0.3.0","license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","engines":{"node":">=10"},"scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test --passWithNoTests","compile":"tsc --noEmit","lint":"tsdx lint","prepare":"tsdx build","size":"size-limit","analyze":"size-limit --why"},"peerDependencies":{"cypress":">= 6","react":">=16","react-router-dom":">= 5"},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"module":"dist/cypress-react-router.esm.js","size-limit":[{"path":"dist/cypress-react-router.cjs.production.min.js","limit":"10 KB"},{"path":"dist/cypress-react-router.esm.js","limit":"10 KB"}],"devDependencies":{"@size-limit/preset-small-lib":"^4.9.1","@types/react":"^17.0.0","@types/react-dom":"^17.0.0","@types/react-router-dom":"^5.1.6","cypress":"^6.2.0","husky":"^4.3.6","react":"^17.0.1","react-dom":"^17.0.1","react-router-dom":"^5.2.0","size-limit":"^4.9.1","tsdx":"^0.14.1","tslib":"^2.0.3","typescript":"^4.1.3"},"gitHead":"7a1935fa70e7f215d827464b53565dd5022a2e15","description":"# Installation:","_id":"cypress-react-router@0.3.0","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-XbD4mpPEIkB/WV4vZ5biRijZ65rxhQaHSEg3MjytCQh92HVn0BBEcYjvgHsoaLlTNpS0HxgX1P80cKBb2zvMjQ==","shasum":"3b59316db4319746aa53e8118238a2702cb990d4","tarball":"https://registry.npmjs.org/cypress-react-router/-/cypress-react-router-0.3.0.tgz","fileCount":19,"unpackedSize":16877,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf8sHRCRA9TVsSAnZWagAAMJEQAIaL+Ef9Z4XTfIOq4vOy\noEwsrJilRb2Nsr7l7CadfjdNpKYnRr8vW8B8ppO0u7RRQHfNu8Ripd1Ow+mj\nHq2+1X8hcUJtnpE5JTKAOil9FcVa9bK0BOHCo3WxrN3DEqxpQ0OL4bZ3CCGo\nvLz2S9/SN5h7Vr72hfP7Ei/5MRtTFXCfKNVda1a/muVc0xClVgAeYME3veDQ\nciOlp3MKNhifEiyLasVRDEeguCVftzi8hb4d8XGiViEb3rxCbBaC/iS9Pacb\n/SFyVcZcZk0BuWt67yvR2W+9HoljUeEp+6uuQTgCUMTJQ+TjLzQ+5RRJJGx9\npIxS4d97rltO6uWU6IVtZF9BbhY9p/b+yZhk2ywiEjGkSKygd2y9GlXCHVS9\nKuYMhQbnhNJdY+auc8KYCYPMwANi1nG04YRslt4A7XpESSYsO6/7Um/7WaRk\ntZliw4HjfGeOq0KbwzH9o1mQg39CI3ZIzBLsCHlWVQ4qq2sA6D2z/t4s27vJ\ncv6weoZMTmWCOmsro5+vHRr/PgHocRXtajLnwCU9XZRK8yiW8vv2zP1CfGew\ncK10Me0CwIPDgUCCBpXAXvO/YTmwUjPTVxm75TenfxH8u/DGs3nJTiK2w3tD\n0M0v2Tvs0PPtdN8hZIrDG0IDR2edcvXy4wx9FKdf1yJEO27R7A83+wVFre4a\nKPPU\r\n=odo8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB28mqYIqJc1/YLt/oXNJusBksGTqlSC6MT/m9+7RZeyAiEAwbYNVOxS64MASCPuZt2hKgHFmq1EUQlX+M0x/w5RaJk="}]},"_npmUser":{"name":"mauricedb","email":"maurice.de.beijer@gmail.com"},"directories":{},"maintainers":[{"name":"mauricedb","email":"maurice.de.beijer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cypress-react-router_0.3.0_1609744848907_0.3496643012628575"},"_hasShrinkwrap":false},"1.0.0":{"name":"cypress-react-router","author":{"name":"Maurice de Beijer"},"version":"1.0.0","license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","engines":{"node":">=10"},"scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test --passWithNoTests","compile":"tsc --noEmit","lint":"tsdx lint","prepare":"tsdx build","size":"size-limit","analyze":"size-limit --why"},"peerDependencies":{"cypress":">= 6","react":">=16","react-router-dom":">= 5"},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"module":"dist/cypress-react-router.esm.js","size-limit":[{"path":"dist/cypress-react-router.cjs.production.min.js","limit":"10 KB"},{"path":"dist/cypress-react-router.esm.js","limit":"10 KB"}],"devDependencies":{"@size-limit/preset-small-lib":"^4.9.1","@types/react":"^17.0.0","@types/react-dom":"^17.0.0","@types/react-router-dom":"^5.1.7","cypress":"^6.2.1","husky":"^4.3.7","react":"^17.0.1","react-dom":"^17.0.1","react-router-dom":"^5.2.0","size-limit":"^4.9.1","tsdx":"^0.14.1","tslib":"^2.1.0","typescript":"^4.1.3"},"gitHead":"6f5025f2108eb963a2b097c7c4f94ed0ccba8ed5","description":"# Installation:","_id":"cypress-react-router@1.0.0","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-aIZyA/K2ck/JfQtGq+03k0Ni+HESDMwvNphmX3QR0l1AH1fhOPsyJ5FrzVpnB1oysY2Ad/bwHjRX8j2mdcuARQ==","shasum":"034e295a392e3b1ba53098dbcce7852418df1c34","tarball":"https://registry.npmjs.org/cypress-react-router/-/cypress-react-router-1.0.0.tgz","fileCount":19,"unpackedSize":16945,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf+yJkCRA9TVsSAnZWagAAYYoP/3gW48QI9FabXXe3Ixc5\nB7eVD0QHy0hreaVajgv8MXuvwOEwZUzFeY2TjuhUT6KSRzjD5b00uCFSSanb\ngkY2eR1F9sKSamX3RPfpZ4f0Yfh7x9nq5Sk7MkkTm3BK8sDrPCpvFxy2HaH1\nWlLtIytQ98wM3xFBeNZJ1eGNRwzk0ArpgN6uLdSEb2nHznIVTeL7hSRDHRa7\npOheWep45GRKeFcSwo+cBbLWrADOwL+Qs2elmMYPEdEEieL9tIMeFH1elQAv\nE2K5g19xuGOmqARuK2kzITkcgi03WeoFbxilqWvgv1CE9FVKUaYVBBA6qwkE\nCw0G36OOY1Lue5iAybcyCLwNXFWKSfrkrSr52Ew3CFAosHIOhomTzdbdQlZm\n/MgkpaT9NelTiXLY5U26PHj/3KW1+jUkrbJUZq1aJapRtXZk5/DXFNDkIs4d\nnCLCRBK8VUD1weqE+bC5LS2DKx2Rtxvxowk0HwPW4dNtbcgJ/4mUzX4asYwh\nU6r3RFfYXL/e6gu63g8vkxAuTmkGhuo6ULMNHyTfs4m7mj+L+80Vn4d0DBob\nPToK/sonqostb7qAGY1ny54zJGYsHRWNim0dVHU4DmrqUOzXaKjK6SI90vVU\nbHGXGma8cakRx8MnusX88eWv8Qp0eT/iMC9S5AWFEVDJT4e+MqC2oSfpJsc1\ntZV/\r\n=57jZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDvHSVYoX9f+5mAZhPu3ay63z42FHrLk87Pgh79TSb7UgIhAJ5GxDrxBZckrNqBFsMp02nnO1iv+12tLgW2eGHbYTqB"}]},"_npmUser":{"name":"mauricedb","email":"maurice.de.beijer@gmail.com"},"directories":{},"maintainers":[{"name":"mauricedb","email":"maurice.de.beijer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cypress-react-router_1.0.0_1610293860401_0.48441166422479665"},"_hasShrinkwrap":false},"1.0.1":{"name":"cypress-react-router","description":"Adds cy.historyPush() and cy.historyReplace() commands to the Cypress object to navigate using the React Router Dom history API. Both commands take the path and an optional state object as parameters.","author":{"name":"Maurice de Beijer"},"keywords":["cypress-react-router","cypress","cypress.io","commands","visit","cy.visit","react","router","route","routing","history","link","browserrouter","hashrouter"],"version":"1.0.1","license":"MIT","homepage":"https://github.com/mauricedb/cypress-react-router#readme","repository":{"type":"git","url":"git+https://github.com/mauricedb/cypress-react-router.git"},"bugs":{"url":"https://github.com/mauricedb/cypress-react-router/issues"},"main":"dist/index.js","typings":"dist/index.d.ts","engines":{"node":">=10"},"scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test --passWithNoTests","compile":"tsc --noEmit","lint":"tsdx lint","prepare":"tsdx build","size":"size-limit","analyze":"size-limit --why"},"peerDependencies":{"cypress":">= 6","react":">=16","react-router-dom":">= 5"},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"module":"dist/cypress-react-router.esm.js","size-limit":[{"path":"dist/cypress-react-router.cjs.production.min.js","limit":"10 KB"},{"path":"dist/cypress-react-router.esm.js","limit":"10 KB"}],"devDependencies":{"@size-limit/preset-small-lib":"^4.9.1","@types/react":"^17.0.1","@types/react-dom":"^17.0.0","@types/react-router-dom":"^5.1.7","cypress":"^6.4.0","husky":"^4.3.8","react":"^17.0.1","react-dom":"^17.0.1","react-router-dom":"^5.2.0","size-limit":"^4.9.1","tsdx":"^0.14.1","tslib":"^2.1.0","typescript":"^4.1.3"},"gitHead":"01c1ac4617406a58cbc1e8cbe2b9c07c41e646b6","_id":"cypress-react-router@1.0.1","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-HFxogRj9CLm58XlJQWZgbjYZMFrgklpvoy9AYKfs59dLBydQgtUM1oJg6OmPwUXVXstOCeGJKNMtrimiJaHZnA==","shasum":"cd838501fa82c134e0f3a03a3b40d386da487af8","tarball":"https://registry.npmjs.org/cypress-react-router/-/cypress-react-router-1.0.1.tgz","fileCount":19,"unpackedSize":17708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgIZDDCRA9TVsSAnZWagAAq2AP/0CdXs2h/ISib8TpkdkC\n4WPecLRCrCyWslugsoP9DiHGQtotG3j37oVc6WL/9Fgptn/OLSEAFIEURZCy\n4VmEP9aC2aJc2emV84zqGu3qPiZBKmGHQYZgOtENac17Baw+rXCPanhqMI+s\nKbqy4yMI6PNGNmZPMenGUEEs4/SC5gTQMKn/8ZckP5YZiT5UoJdyGkX5p3a9\nPeFY4NMmpPfk8pmu8hTfXqXVSQPWzpE07HIULcozmRqF2xqwbFv5ET/y/pXI\n3fT91GZFEGe4pwRKHgVwIsQyBdiPxFoF9YpfkoRcP+KaDBGhE3bALsJHeF6Z\n0trwfumycX8rTmZXumvYPWmtmz8shFxaT2STDR8Ejk8+A0oa/tDt394PbeAU\nKMgjKDv5xsIn77EzonDYoskykcJ9RgXusHwvoUD33HqswZFC/lJYKJODgLJf\nE1yf5styVPBsOiyFSAx7eTuyWdbJ4TkAj6edAexx0ERRv977A76iLQMi92Qf\nufdl2SegrVQg3aoqSKhTYHWBAi1WDRAz9gK6WnlEiODMpMFTwDGi8+XiN/jp\nAerVYgVUDW/ffiIbi1qzvBLFC1cK6M83YvjFYEd//Bc9Uvqz3lR66p2xPHU5\n6f2Cg7TxOJUJap/AgC07zYHHAd0bNzMYt5OzWzVRkoyDeO27Se4WAuqSoAMM\nNXJ6\r\n=cbTw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID/Gj+KU5dCo2kznT0vVraYytIOBsRmNE4QyuOVP4SjUAiEAv59f3yEufD5LPR1rU3SjwSPflLdw4V9XocalpkY8Qrg="}]},"_npmUser":{"name":"mauricedb","email":"maurice.de.beijer@gmail.com"},"directories":{},"maintainers":[{"name":"mauricedb","email":"maurice.de.beijer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cypress-react-router_1.0.1_1612812483304_0.4217643225387435"},"_hasShrinkwrap":false},"1.0.2":{"name":"cypress-react-router","description":"Adds cy.historyPush() and cy.historyReplace() commands to the Cypress object to navigate using the React Router Dom history API. Both commands take the path and an optional state object as parameters.","author":{"name":"Maurice de Beijer"},"keywords":["cypress-react-router","cypress","cypress.io","commands","visit","cy.visit","react","router","route","routing","history","link","browserrouter","hashrouter"],"version":"1.0.2","license":"MIT","homepage":"https://github.com/mauricedb/cypress-react-router#readme","repository":{"type":"git","url":"git+https://github.com/mauricedb/cypress-react-router.git"},"bugs":{"url":"https://github.com/mauricedb/cypress-react-router/issues"},"main":"dist/index.js","typings":"dist/index.d.ts","engines":{"node":">=10"},"scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test --passWithNoTests","compile":"tsc --noEmit","lint":"tsdx lint","prepare":"tsdx build","size":"size-limit","analyze":"size-limit --why"},"peerDependencies":{"cypress":">= 6","react":">=16","react-router-dom":">= 5"},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"module":"dist/cypress-react-router.esm.js","size-limit":[{"path":"dist/cypress-react-router.cjs.production.min.js","limit":"10 KB"},{"path":"dist/cypress-react-router.esm.js","limit":"10 KB"}],"devDependencies":{"@size-limit/preset-small-lib":"^4.9.1","@types/react":"^17.0.1","@types/react-dom":"^17.0.0","@types/react-router-dom":"^5.1.7","cypress":"^6.4.0","husky":"^5.0.9","react":"^17.0.1","react-dom":"^17.0.1","react-router-dom":"^5.2.0","size-limit":"^4.9.1","tsdx":"^0.14.1","tslib":"^2.1.0","typescript":"^4.1.3"},"gitHead":"7ec76dd9eaeec6cb8812a9b8084554e3c495e1a4","_id":"cypress-react-router@1.0.2","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-kjjVARkmPTRMM2oPDP6pxNdwKLZOaHrXq2/i7G6czTUUZAKB44NEU8Z4RdfeTJ8Vx1Y+zfCc96AVdj6in2OMTQ==","shasum":"55fe1848732c92df917d0f45b6658b0d6fdcdfd9","tarball":"https://registry.npmjs.org/cypress-react-router/-/cypress-react-router-1.0.2.tgz","fileCount":19,"unpackedSize":17949,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgKWvBCRA9TVsSAnZWagAA9jsP/1KR8zn05fcd6ygkhjHL\n0t0bpTBYV8/EM8ylZiMS/dhi1yAk78JrZXk0tjWd00ZSnFho+x06xBm08P6M\nqG5cj0I2bPmtGnq0O3pQd7nZ52lMoPpvDrQ/0XWbbuPnKplZpw9FkN2jsSYv\nCozqr+cs3+xmnx+RwAtPGDsE2+ft+yi3dc+4CxrB0I/Sqf0fdWnJ4fpAi3a3\nZlmJ/xrxGayUk6p7TPLPwGq+oO69tT5fZKJbHotXmqSKcUt8A1y9+mVQEIur\nrRq7VsJXBdXeDVQs0LggTwog5G08RZCrzOV7UOppZcebuTcaYMwXQqLQ/uBW\n2sm5+OTh1f4ykbrZH9aoWaxkUZ1oT6hnPg7X6MyOg7R65wnkGQQq5ADgdlHe\na4O57mbPS11EGk0oON87cn6UotVh7vG6gzspygbQpjiy/WoYZqQyWC7KipfT\nL7uCq8Y0jfpIzjzWOBaj1N2s6UU8iWcxE0/nHeuS3wGUpKYI4+EgmPqwysc9\n2xBWGu7k3RVxSm/uKfzlCXCizRH7dNjDOVi0U8ihBzxXlIPBdsVUL7cDVCFN\nCYG0dFF/4AyIagllxZeukL9HJloxFD0G4XaBgMzbO3snhVr6H2Rrk2F51y3o\nI+rvaKvFP2uHaHS7+WNr+TKvWpi2E4KakByQ4Fcl7UgPqEg3spiymUBMXAR8\nR2S6\r\n=xutt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCiMZFGPbLeyB/y18UEL7XnAwc56QawOK2yaaK87nG+4QIhAMRk5gPygSiDehpU/0el+eLJZi1aY4f1SBtUOQOtVakC"}]},"_npmUser":{"name":"mauricedb","email":"maurice.de.beijer@gmail.com"},"directories":{},"maintainers":[{"name":"mauricedb","email":"maurice.de.beijer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cypress-react-router_1.0.2_1613327296833_0.46427533652878483"},"_hasShrinkwrap":false},"2.0.0-0":{"name":"cypress-react-router","description":"Adds cy.routerNavigate() command to the Cypress object to navigate using the React Router Dom history API. The command take the to and an optional options object as parameters.","author":{"name":"Maurice de Beijer"},"keywords":["cypress-react-router","cypress","cypress.io","commands","visit","cy.visit","react","router","route","routing","history","link","browserrouter","hashrouter"],"version":"2.0.0-0","license":"MIT","homepage":"https://github.com/mauricedb/cypress-react-router#readme","repository":{"type":"git","url":"git+https://github.com/mauricedb/cypress-react-router.git"},"bugs":{"url":"https://github.com/mauricedb/cypress-react-router/issues"},"main":"dist/index.js","typings":"dist/index.d.ts","engines":{"node":">=10"},"scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test --passWithNoTests","compile":"tsc --noEmit","lint":"tsdx lint","prepare":"tsdx build","size":"size-limit","analyze":"size-limit --why"},"peerDependencies":{"cypress":">= 6","react":">=16.8","react-router-dom":">= 6"},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"module":"dist/cypress-react-router.esm.js","size-limit":[{"path":"dist/cypress-react-router.cjs.production.min.js","limit":"10 KB"},{"path":"dist/cypress-react-router.esm.js","limit":"10 KB"}],"devDependencies":{"@size-limit/preset-small-lib":"^6.0.4","@types/react":"^17.0.34","@types/react-dom":"^17.0.11","cypress":"^8.7.0","husky":"^7.0.4","react":"^17.0.2","react-dom":"^17.0.2","react-router-dom":"^6.0.1","size-limit":"^6.0.4","tsdx":"^0.14.1","tslib":"^2.3.1","typescript":"^4.4.4"},"readme":"# Cypress History Support\n\n# Installation:\n\n`npm install cypress-react-router`\n\n# Usage:\n\nAdds `cy.routerNavigate()` command to the Cypress object to navigate using the React Router Dom `useNavigate()` API. The command take the `to` and an optional `options` object as parameter.\n\n## With TypeScript\n\nTypings should be added as follows in tsconfig.json:\n\n```json\n{\n  \"compilerOptions\": {\n    \"lib\": [\"es5\", \"dom\"],\n    \"target\": \"es5\",\n    \"types\": [\"cypress\", \"cypress-react-router\"]\n  },\n  \"include\": [\"**/*.ts\"]\n}\n```\n\n## Should you use this package?\n\nIf you are wondering if you should use this package the most likely answer is no.\n\nIn most cases you should do something like:\n\n```JavaScript\ncy.visit('/')\ncy.get('[href=\"/article/42\"]').click();\n```\n\nOr use some other `cy.get()` selector, or even better `cy.findByRole('link', { name: 'Article 42' })` from [Cypress Testing Library](https://testing-library.com/docs/cypress-testing-library/intro/).\n\nSo if you should not use this normally why does it exist?\n\nIn some cases you need to do setup work and the navigate to some well know route with previously setup data. So you might do something like:\n\n```JavaScript\ncy.visit('/');\ncy.login();\ncy.visit('/article/42');\n```\n\nThe problem here is that the second `cy.visit()` reloads the application from the server. And if your application is a Single Page Application or SPA using React Router Dom you have just lost all state setup with the call to your custom `cy.login()` command.\n\nSo instead of calling `cy.visit()` a second time we want to do a `history.push()` like you would in the React application and what happens if you click on a `<Link />` component in the browser. And that is what this package will let you do.\n\n## Example usage:\n\nIn the file containing your `<BrowserRouter />` or `<HashRouter />` add the `<CypressHistorySupport />`\n\n```JavaScript\nimport React from 'react';\nimport { BrowserRouter } from 'react-router-dom';\nimport { CypressHistorySupport } from 'cypress-react-router';\n\nconst App = () => {\n  return (\n    <BrowserRouter>\n      <CypressHistorySupport />\n      {/* Your other components */}\n    </BrowserRouter>\n  );\n};\n```\n\nIn `/cypress/support/commands.js` add support for the router commands\n\n```JavaScript\nimport 'cypress-react-router/add-commands';\n```\n\nThen in your Cypress tests use the `cy.routerNavigate()` command as needed.\n\n```JavaScript\ncontext('Open secure articles', () => {\n  beforeEach(() => {\n    cy.visit('/');\n    cy.login();\n  });\n\n  it('navigates to article 42 without reload', () => {\n    cy.routerNavigate('/article/42');\n\n    // Do whatever you need to do\n  });\n});\n```\n","readmeFilename":"README.md","gitHead":"a1d73ff61bd0e500f6da1a14c50c1664a5f6acdb","_id":"cypress-react-router@2.0.0-0","_nodeVersion":"14.18.0","_npmVersion":"7.24.0","dist":{"integrity":"sha512-D465tTwMCTH+MVOyugFwXV9suQ14ts4nNFD0JI3tbDLDOV4PGJlJIuNYKYDn/CQOYHHKLCCv+CAkyugU0UlrGg==","shasum":"096a4c50d80437ca4c069973b288b40df876cab3","tarball":"https://registry.npmjs.org/cypress-react-router/-/cypress-react-router-2.0.0-0.tgz","fileCount":19,"unpackedSize":15456,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDnEkRMBAPEgxWqyixqvjviY7IhYZe1Ic4Xdp0zwlcP8wIgAliJeTy9rbTyuoGfeSz78yYvVedaxCsdhR10mXcUtUE="}]},"_npmUser":{"name":"mauricedb","email":"maurice.de.beijer@gmail.com"},"directories":{},"maintainers":[{"name":"mauricedb","email":"maurice.de.beijer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cypress-react-router_2.0.0-0_1636459630338_0.8643471513769168"},"_hasShrinkwrap":false},"2.0.0":{"name":"cypress-react-router","description":"Adds cy.routerNavigate() command to the Cypress object to navigate using the React Router Dom history API. The command take the to and an optional options object as parameters.","author":{"name":"Maurice de Beijer"},"keywords":["cypress-react-router","cypress","cypress.io","commands","visit","cy.visit","react","router","route","routing","history","link","browserrouter","hashrouter"],"version":"2.0.0","license":"MIT","homepage":"https://github.com/mauricedb/cypress-react-router#readme","repository":{"type":"git","url":"git+https://github.com/mauricedb/cypress-react-router.git"},"bugs":{"url":"https://github.com/mauricedb/cypress-react-router/issues"},"main":"dist/index.js","typings":"dist/index.d.ts","engines":{"node":">=10"},"scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test --passWithNoTests","compile":"tsc --noEmit","lint":"tsdx lint","prepare":"tsdx build","size":"size-limit","analyze":"size-limit --why"},"peerDependencies":{"cypress":">= 6","react":">=16.8","react-router-dom":">= 6"},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"module":"dist/cypress-react-router.esm.js","size-limit":[{"path":"dist/cypress-react-router.cjs.production.min.js","limit":"10 KB"},{"path":"dist/cypress-react-router.esm.js","limit":"10 KB"}],"devDependencies":{"@size-limit/preset-small-lib":"^6.0.4","@types/react":"^17.0.34","@types/react-dom":"^17.0.11","cypress":"^8.7.0","husky":"^7.0.4","react":"^17.0.2","react-dom":"^17.0.2","react-router-dom":"^6.0.2","size-limit":"^6.0.4","tsdx":"^0.14.1","tslib":"^2.3.1","typescript":"^4.4.4"},"gitHead":"a3dddde297bf328d8995c78bc87900daba2dc0fa","_id":"cypress-react-router@2.0.0","_nodeVersion":"14.18.0","_npmVersion":"7.24.0","dist":{"integrity":"sha512-7rBrORha6AwjG9p27MnyZEfxiAb9Y2N2GwjVAnOOFOlTmydvBitkO2nPhAUH9kRXcomPmIn87hf4qBjrSTUzlg==","shasum":"ff8cecff71efc96482dea7fbe7744ec0ac2697a0","tarball":"https://registry.npmjs.org/cypress-react-router/-/cypress-react-router-2.0.0.tgz","fileCount":19,"unpackedSize":16042,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhlNtnCRA9TVsSAnZWagAAOO4P/RXPDwsg7sqI0PSgzWFh\nby20lnrTex7eMEEYeXUhYlxamC2FWT5k5Hg01MC/T+amHmCYSMNrACLmEIy+\n1ufEzNfZun5D1MbC+i50fvwv4oCbDl1FmBKEVUDiX+y2p/fUFFsiN6Ht00Mw\ndWT5nJat2jAaFRubEppeOPRc5pdzl9O8Kngu+cT985Pfr1BFT1krAORdw5Ll\nRIzn26k9P8A0BnQtK35ccOamnUtY05wkM7/kXMgEMPuTSqUGj44DSP4SctA3\nLrHv1VI39k8kq4LuCN9k01NdH5sq1HuqM5hMO6aQpZeh08efzRFWWtRQHou2\nu8uYHHew8X3+Ashg8UrPktytjdXii5s+R/wRLjDXGTOWyGov3qKPzHiCCrro\nQxjsE5ei9TrnBwJ8UO9cmt+XfoD37ySMXksZPLPYh/LBLz5ftF5SpZW/uDq7\nCb6hDBJ4iRQB6D2uzinTwNc3OdcfhGQTCUbH2YS6eL6E6bpRIqeFvyLibnf5\nOb7lT0PPhoKmcjtYn775fUMmznjNb6wa21Op4quoJdcVBiet0FofYL9Z1Vdk\nq0dvTE/vSqNE1gpJvq4llBaEYcwFeC+U+8gDJMTST5FNHgSU6f1iwo6Wuea0\nCQatYzI31ahVWfPTf9H7MXQSXMUXgeUFxpma4nHyk6m8FdTlC7CVq78kT1hh\nUh+U\r\n=HNmt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHH1yD4kY1mEPKREiVrj23SHupYxyx/BTjN3rtmxtqtcAiA34aDhii2UzKyS3M3xDuCkN8W0a/cz7FIO0mE/PLh40w=="}]},"_npmUser":{"name":"mauricedb","email":"maurice.de.beijer@gmail.com"},"directories":{},"maintainers":[{"name":"mauricedb","email":"maurice.de.beijer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cypress-react-router_2.0.0_1637145447625_0.635618778638658"},"_hasShrinkwrap":false},"2.0.1":{"name":"cypress-react-router","description":"Adds cy.routerNavigate() command to the Cypress object to navigate using the React Router Dom history API. The command take the to and an optional options object as parameters.","author":{"name":"Maurice de Beijer"},"keywords":["cypress-react-router","cypress","cypress.io","commands","visit","cy.visit","react","router","route","routing","history","link","browserrouter","hashrouter"],"version":"2.0.1","license":"MIT","homepage":"https://github.com/mauricedb/cypress-react-router#readme","repository":{"type":"git","url":"git+https://github.com/mauricedb/cypress-react-router.git"},"bugs":{"url":"https://github.com/mauricedb/cypress-react-router/issues"},"main":"dist/index.js","typings":"dist/index.d.ts","engines":{"node":">=10"},"scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test --passWithNoTests","compile":"tsc --noEmit","lint":"tsdx lint","prepare":"tsdx build","size":"size-limit","analyze":"size-limit --why"},"peerDependencies":{"cypress":">= 6","react":">=16.8","react-router-dom":">= 6"},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"module":"dist/cypress-react-router.esm.js","size-limit":[{"path":"dist/cypress-react-router.cjs.production.min.js","limit":"10 KB"},{"path":"dist/cypress-react-router.esm.js","limit":"10 KB"}],"devDependencies":{"@size-limit/preset-small-lib":"^7.0.3","@types/react":"^17.0.37","@types/react-dom":"^17.0.11","cypress":"^9.1.1","husky":"^7.0.4","react":"^17.0.2","react-dom":"^17.0.2","react-router-dom":"^6.0.2","size-limit":"^7.0.3","tsdx":"^0.14.1","tslib":"^2.3.1","typescript":"^4.5.2"},"gitHead":"c3ed7cdcdbecb56b463e17eb12d79083f3ae458d","_id":"cypress-react-router@2.0.1","_nodeVersion":"14.18.0","_npmVersion":"7.24.0","dist":{"integrity":"sha512-vP7labviVtbG+CQ34nVWCiieUD6vD/CO7lqrIkD75j5NnZS6AjvHgmczAQYHVHvsZqpan2W35sj4oHNBoBnx8w==","shasum":"939a21baa2d584ec8b9cd2e1626468ad59ba4fc7","tarball":"https://registry.npmjs.org/cypress-react-router/-/cypress-react-router-2.0.1.tgz","fileCount":19,"unpackedSize":16071,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhsdFpCRA9TVsSAnZWagAA5W8P/Ai5rCWhCyAA9B62Vd1b\nfDog8TuRjUmT1GYA1z3m5WBC2wG6Dl+8VnKwtp6mbgPPZGJ3GmQsmaq+1Hba\nA5ZLc9ZSFXPeC6itK32R5du7BYMepDV+nvvrdOqv9/AqLVUm44OX3QksZguZ\n8xVH6gQmVA/NM0w8o/yHe0ayd4+xA5NcbJKosj0UwhPaI9L7z1WjfFm45Rgl\nRrZFymca4+9Vt8gJn+LnQgip9ODeiqIvBSDoc6+Wz3P7ONemqYD4IHM4k5rk\nSuXCyQXmmfn4eS8GR1YRQ2OY2MdNiy+gMz9gcJSJTGBcj0E4yzoBO2KDp3gJ\noua3MMBBTXzpM7lYGaTXV5qh0JikXkRFiS9MYSrV1A5FynG4G0o8RNx7jguP\npq6FwnPAP6SXFBRiAVfT73nQAYpWbJmpoVoxj3JQNz30z+82/1XW8q2A4Gp8\nqm8ooF1kLPS4r2g1fJorjWdsTqvhDlbAnyfZVjvGU4swfy3fic0m+xNHYcSa\nBxRqDgvaludpH+XCOIFBLLPZ/Se87dI5CIjYct5vBEaxen76ExMQeNaGFpq/\nkMKspUb8U14iOEK2zfrVLtTUd+FOpv/L7+rnuYLPEyUZPocHiUEDeqY27pVQ\nfOQLS3UD+RU0i6xS0+35EHE4YIh+NvSLtJApwAQp8oQb3eaB7m9gsRRxxvhA\ns4mA\r\n=oNyp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDFcwTxYcJX//rEjOsZdYc6gWJJkzfQ0+cHUMMm65fQGAIhAN5+kVW/AltFJnXMd62PlkLBYbX7k//04934Esk3wd8M"}]},"_npmUser":{"name":"mauricedb","email":"maurice.de.beijer@gmail.com"},"directories":{},"maintainers":[{"name":"mauricedb","email":"maurice.de.beijer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cypress-react-router_2.0.1_1639043433010_0.570355786598328"},"_hasShrinkwrap":false}},"time":{"created":"2020-12-30T16:10:59.729Z","0.1.1":"2020-12-30T16:10:59.928Z","modified":"2022-04-28T02:39:06.847Z","0.2.0":"2020-12-30T17:02:58.622Z","0.2.1":"2020-12-31T14:46:12.547Z","0.2.2":"2020-12-31T15:04:14.223Z","0.3.0":"2021-01-04T07:20:49.068Z","1.0.0":"2021-01-10T15:51:00.501Z","1.0.1":"2021-02-08T19:28:03.415Z","1.0.2":"2021-02-14T18:28:16.986Z","2.0.0-0":"2021-11-09T12:07:10.536Z","2.0.0":"2021-11-17T10:37:27.821Z","2.0.1":"2021-12-09T09:50:33.166Z"},"maintainers":[{"name":"mauricedb","email":"maurice.de.beijer@gmail.com"}],"description":"Adds cy.routerNavigate() command to the Cypress object to navigate using the React Router Dom history API. The command take the to and an optional options object as parameters.","author":{"name":"Maurice de Beijer"},"license":"MIT","readme":"# Cypress History Support\r\n\r\n# Installation:\r\n\r\n`npm install cypress-react-router`\r\n\r\n# Usage:\r\n\r\nAdds `cy.routerNavigate()` command to the Cypress object to navigate using the React Router Dom `useNavigate()` API. The command take the `to` and an optional `options` object as parameter.\r\n\r\n## With TypeScript\r\n\r\nTypings should be added as follows in tsconfig.json:\r\n\r\n```json\r\n{\r\n  \"compilerOptions\": {\r\n    \"lib\": [\"es5\", \"dom\"],\r\n    \"target\": \"es5\",\r\n    \"types\": [\"cypress\", \"cypress-react-router\"]\r\n  },\r\n  \"include\": [\"**/*.ts\"]\r\n}\r\n```\r\n\r\n## Should you use this package?\r\n\r\nIf you are wondering if you should use this package the most likely answer is no.\r\n\r\nIn most cases you should do something like:\r\n\r\n```JavaScript\r\ncy.visit('/')\r\ncy.get('[href=\"/article/42\"]').click();\r\n```\r\n\r\nOr use some other `cy.get()` selector, or even better `cy.findByRole('link', { name: 'Article 42' })` from [Cypress Testing Library](https://testing-library.com/docs/cypress-testing-library/intro/).\r\n\r\nSo if you should not use this normally why does it exist?\r\n\r\nIn some cases you need to do setup work and the navigate to some well know route with previously setup data. So you might do something like:\r\n\r\n```JavaScript\r\ncy.visit('/');\r\ncy.login();\r\ncy.visit('/article/42');\r\n```\r\n\r\nThe problem here is that the second `cy.visit()` reloads the application from the server. And if your application is a Single Page Application or SPA using React Router Dom you have just lost all state setup with the call to your custom `cy.login()` command.\r\n\r\nSo instead of calling `cy.visit()` a second time we want to do a `history.push()` like you would in the React application and what happens if you click on a `<Link />` component in the browser. And that is what this package will let you do.\r\n\r\n## Example usage:\r\n\r\nIn the file containing your `<BrowserRouter />` or `<HashRouter />` add the `<CypressHistorySupport />`\r\n\r\n```JavaScript\r\nimport React from 'react';\r\nimport { BrowserRouter } from 'react-router-dom';\r\nimport { CypressHistorySupport } from 'cypress-react-router';\r\n\r\nconst App = () => {\r\n  return (\r\n    <BrowserRouter>\r\n      <CypressHistorySupport />\r\n      {/* Your other components */}\r\n    </BrowserRouter>\r\n  );\r\n};\r\n```\r\n\r\nIn `/cypress/support/commands.js` add support for the router commands\r\n\r\n```JavaScript\r\nimport 'cypress-react-router/add-commands';\r\n```\r\n\r\nThen in your Cypress tests use the `cy.routerNavigate()` command as needed.\r\n\r\n```JavaScript\r\ncontext('Open secure articles', () => {\r\n  beforeEach(() => {\r\n    cy.visit('/');\r\n    cy.login();\r\n  });\r\n\r\n  it('navigates to article 42 without reload', () => {\r\n    cy.routerNavigate('/article/42');\r\n\r\n    // Do whatever you need to do\r\n  });\r\n});\r\n```\r\n\r\n## Versioning\r\n\r\n**Make sure to use the correct version of this library for you!**\r\n\r\nVersion 1.* of this package is intended for use with React Router DOM version 5. Use the `cy.historyPush()` and `cy.historyReplace()` commands to execute the respective `history.push()` and `history.replace()` functions.\r\n\r\nVersion 2.* of this package is intended for use with React Router DOM version 6 which has an different API. Use the `cy.routerNavigate()` command to execute the `navigate()` function.","readmeFilename":"README.md","homepage":"https://github.com/mauricedb/cypress-react-router#readme","keywords":["cypress-react-router","cypress","cypress.io","commands","visit","cy.visit","react","router","route","routing","history","link","browserrouter","hashrouter"],"repository":{"type":"git","url":"git+https://github.com/mauricedb/cypress-react-router.git"},"bugs":{"url":"https://github.com/mauricedb/cypress-react-router/issues"}}