{"_id":"mock-apollo-client","_rev":"21-1b90aeb1bbd1a6779e00a47ff06a3e97","name":"mock-apollo-client","dist-tags":{"apollo2":"0.7.0","latest":"2.0.0","apollo3":"1.4.0"},"versions":{"0.0.1":{"name":"mock-apollo-client","version":"0.0.1","keywords":["apollo-client","graphql","mock","test","testing"],"author":{"name":"mike-gibson"},"license":"MIT","_id":"mock-apollo-client@0.0.1","maintainers":[{"name":"mike-g","email":"mike-g-npm@outlook.com"}],"homepage":"https://github.com/mike-gibson/mock-apollo-client#readme","bugs":{"url":"https://github.com/mike-gibson/mock-apollo-client/issues"},"dist":{"shasum":"eb305c45b9a26c1b042c7ebe918e1ea68c48b5ac","tarball":"https://registry.npmjs.org/mock-apollo-client/-/mock-apollo-client-0.0.1.tgz","fileCount":15,"integrity":"sha512-SvwLvtMg1wbU6Gi9l8BshxfzygugheAqtTWyf8KM3a+oQFnGoijm6Hv9WTMg+4pLiGKf9+7v1ONQ0eUGCT70vg==","signatures":[{"sig":"MEYCIQCY/8rXa18vYANCuZDdVs0szDQuSbOKVNko8KWiwQYs0gIhAKrNx5MgJqPJ6//ArtCZoOwe/B1O4ZyGMAkBENQYb9lN","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12117,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcfEEoCRA9TVsSAnZWagAAyZcP/iqAl78w56EayZKyfmnj\niuEBmqV6lYYtMoUFfsIYWfRc2pSNUJ9NACU1t4+TEYo5DaksNThek93/tA/X\n+kUHZl5F43UX8yLaGR4ciN9yc7x1L7btM3SRiVUD0pc7kKfvqZzA4WJRT2Pl\nMJ7opswUyfOUgTVGZppjPMAH9mX6ZJk0dm0uU4AEyAhgflkxRxNPRGKWRqYx\n3HPc/3GtRywYjpwfGVTX670tsHuZBFPQEh3Tr/1UzHsrDIkU4KjeHVrxW7nu\nuWHlvT8ZwxSlVEEpQqk8lLKgf34cuYTSa4+PykOvz6V3R2lWXi2z1ipl2XI6\nhBqIQTF9mahytlSY6RxoZIcZuALdBXw/iqy7Czy1mIua3g9tfeVmfEbmcAkW\nTVWeIr9DwvpTyhAvKil/ASbs+VlmjQLzjTtlZNOJ+kw/ThsJL0MYndSex1j7\nfWHfbnXI0kd5D10ZYD3IElZPdNpyLnyLvh4C/uFgOVTXyT2nPc/AeEpzwByN\nvQj9qUzVic9JWZo0v+xb+MgHU64u4XbTVIt9YaYMKVYs5Px+iSlr1QftOYb0\nflfe4OQfYHENPuki7GfsnEoZMbG5q5fROHoibb2O4hAx6qIzHrcZDpZV+b+c\n9gTyR8rVS4oZxrQSIqTBLNgcGfF+FFD7Xx0sQlORNwEd4ymOI3TTDgFtRHgv\nWtfD\r\n=GWcd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"c12ecc7d4f71c593742aa335f41ca5e9da4d988e","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf ./dist && tsc","deploy":"npm run build && npm publish"},"_npmUser":{"name":"mike-g","email":"mike-g-npm@outlook.com"},"repository":{"url":"git+https://github.com/mike-gibson/mock-apollo-client.git","type":"git"},"_npmVersion":"6.4.1","description":"Library to help unit testing when using apollo-client","directories":{},"_nodeVersion":"10.15.2","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"jest":"^24.1.0","graphql":"^14.1.1","typescript":"^3.3.3333","@types/jest":"^24.0.9","apollo-client":"^2.5.1","@types/graphql":"^14.0.7","apollo-cache-inmemory":"^1.5.1"},"peerDependencies":{"graphql":"~14.1.0","apollo-client":"~2.5.0"},"_npmOperationalInternal":{"tmp":"tmp/mock-apollo-client_0.0.1_1551647015326_0.49652456397793343","host":"s3://npm-registry-packages"}},"0.1.0":{"name":"mock-apollo-client","version":"0.1.0","keywords":["apollo-client","graphql","mock","test","testing"],"author":{"name":"mike-gibson"},"license":"MIT","_id":"mock-apollo-client@0.1.0","maintainers":[{"name":"mike-g","email":"mike-g-npm@outlook.com"}],"homepage":"https://github.com/mike-gibson/mock-apollo-client#readme","bugs":{"url":"https://github.com/mike-gibson/mock-apollo-client/issues"},"dist":{"shasum":"2289fd2775b71bf6c0ced42463652f8f188db3d9","tarball":"https://registry.npmjs.org/mock-apollo-client/-/mock-apollo-client-0.1.0.tgz","fileCount":8,"integrity":"sha512-Btj7ed+gYEwu5omJm1DOX8hGUrqfgXAxUtc96WzoCy/TP7d3xRCn8Otlc/ReAaOYAaWCu8OIGtqZMNvagiYUIg==","signatures":[{"sig":"MEUCIEH0j878AdmZVYoLIRTDYaRmOJjm6+XeN+Fi2GqJAMnzAiEA6zCb31JVzq9xJ9KJH25SjFKnsZJyZe8sCe21h/Wgyig=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10863,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcufW4CRA9TVsSAnZWagAAdSQP/2v31eD+mPxPWcVddJ1z\nxa2pe7Th90QRYxv0E/zUURhYqYTERS/gCN6gnm4PrEp412Zn72w1syELwsTp\nYRWkwoMH95jPWg0U06Pckvswyv2BbZTMLndF7PpoLmTd8IA8oSIgmFyATZUF\nAKo+Wflc9vbyWGIigHO+FlFfFeqn0T/eZ5KiCDF+AtXBmsRb3xiHkA7KXtH4\njQyuy/BPiZHadBVqgCnLjlGYtON9eP09D+vyEmcierw6khdZl8ndfhwZd+0C\nSpfuQJXrE1eEZCcsdg2Rmk2UMjsHNAp+Sbds5CuRDDXgqvkvbkbGHvvJHJTb\n0s2UU2O6sT3WthrDPI9/4QjlJyVqaiCAN+3PtlFtl971CPKQ9eEYD+txdIVk\n9FoDzgrYPV58nfwXcvWtBvBZpci2oUpDGRXROZFz74zHDeYAxmmdAwkT40cu\n2wJsJzAI+Z8AvQTdvlMepcFKq2fI1fwnIqqBM5lxnydUUeWvjlD07m97NsuI\nYm3ltyG3DdQJntnvlnisL/BwwXw39eQjuvy82q98fOMA0U7TPfBRryGbVNaA\nDlPgIKfZV3j0+5pjiOZ3S3GU1iG/LNKxLFPDDiKN7kduwDX0Pn6qh2fpeSQc\nJDKv3r6jby2vC4MndDkldgqOY5uNeAZQapZr7Gx5qg/eUvDrE6St/O/6TikR\n4lNi\r\n=26FW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"e7a2e257f6d9fb38dd9a6218db498769f16020eb","scripts":{"test":"jest","build":"rm -rf ./dist && tsc","deploy":"npm run test && npm run build && npm publish","test:watch":"jest --watch"},"_npmUser":{"name":"mike-g","email":"mike-g-npm@outlook.com"},"repository":{"url":"git+https://github.com/mike-gibson/mock-apollo-client.git","type":"git"},"_npmVersion":"6.9.0","description":"Library to help unit testing when using apollo-client","directories":{},"_nodeVersion":"8.9.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"jest":"^24.7.1","graphql":"^14.1.1","ts-jest":"^24.0.2","typescript":"^3.4.3","@types/jest":"^24.0.9","graphql-tag":"^2.10.1","apollo-client":"^2.5.1","@types/graphql":"^14.0.7","apollo-cache-inmemory":"^1.5.1"},"peerDependencies":{"apollo-client":"~2.5.0"},"_npmOperationalInternal":{"tmp":"tmp/mock-apollo-client_0.1.0_1555690935275_0.20395443991020668","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"mock-apollo-client","version":"0.2.0","keywords":["apollo-client","graphql","mock","test","testing"],"author":{"name":"mike-gibson"},"license":"MIT","_id":"mock-apollo-client@0.2.0","maintainers":[{"name":"mike-g","email":"mike-g-npm@outlook.com"}],"homepage":"https://github.com/mike-gibson/mock-apollo-client#readme","bugs":{"url":"https://github.com/mike-gibson/mock-apollo-client/issues"},"dist":{"shasum":"8d9c99247d4f16cb5553479473c63dbce8a856fa","tarball":"https://registry.npmjs.org/mock-apollo-client/-/mock-apollo-client-0.2.0.tgz","fileCount":8,"integrity":"sha512-Sfrvzn3yBGqGZeIazp0N5lLSXvQL0MUaUFb60hVfMYIapLqZJH04Ll0TnX7lA4uRUz7mq+g0fpBzztZ/khS9LA==","signatures":[{"sig":"MEQCIElxfXqeBkCpNO3UlIfzqR+1AbonxJCwMkTlE0jRcW+3AiA6ygc0yfRUb+OBS/XBla+ab+g+aujXwoIN7cM6Wbo+tw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10975,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdS0jYCRA9TVsSAnZWagAAPjcP/jUkVb+e0vbNbwBPd6iK\nPwFZyed7m2FaFLCN0lSxbNpXZ/tV7Rrs0+gc31BZwkJjXYjLKKlQ/umo9a+m\nDdSiyeVl3iN1SPTVTvaKjV8MgjtpLz2tl/9p1ZF4ZCvTgF9WY59M/Fq5hwge\n2zLjOJXUkTEUYVdg3gzaQl1uLZBw3dxsJzeX5xefeZULP7V9StpfGN8gThRc\nJQ7uuDVFZHEYqo0eKpqdUGxS+P6tNFErztSdSrwnFj+S2nhpF0QsxIWUjfSp\njPuTqTYa1b/BMjWZ9tk+ppT7tB3nP6cY7YfuUkqMAWUcxLZvtyYOZAtwL311\ny5LN/3qwAtnEH+pvcAcQgw/1cQom0vHjEa7ATH+ILp/eE+3GnJhnl+xd2tRg\nyKzb7t+NUvVL4qI/tJAvMB8m+sPsFSisxCij8MJjq3CTArLlLfIkP40fRRsI\nTV1nXWkxemZeOcbOB7wT1tgkJ/l9Tm0wVl8czynO5TC2eJIK9GWGIX1NMilt\nDSoCNO9bi+3Bky52KK55udb3V58yOZBpxQYkp8ch9gf5ierkBz8+f27ZJwZH\nk/Msj4EME0UNLsaktLwaNJC7WsuVGAI8yMZt3B40l7Re16fXXC2TqibQ801q\nYnVYXlSbtlped/TdWuIzvrZtkIa+DLfJzdZQWS88awuiGLCZY41LmLvF1s2L\nZttl\r\n=F3Ep\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"e80f7a82d882e91cf01470dc090063bcaa38854c","scripts":{"test":"jest","build":"rm -rf ./dist && tsc","deploy":"npm run test && npm run build && npm publish","test:watch":"jest --watch"},"_npmUser":{"name":"mike-g","email":"mike-g-npm@outlook.com"},"repository":{"url":"git+https://github.com/mike-gibson/mock-apollo-client.git","type":"git"},"_npmVersion":"6.9.0","description":"Library to help unit testing when using apollo-client","directories":{},"_nodeVersion":"10.16.2","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"jest":"^24.8.0","graphql":"^14.4.2","ts-jest":"^24.0.2","typescript":"^3.5.3","@types/jest":"^24.0.17","graphql-tag":"^2.10.1","apollo-client":"^2.6.3","@types/graphql":"^14.2.3","apollo-cache-inmemory":"^1.6.2"},"peerDependencies":{"apollo-client":"~2.5.0 || ~2.6.0"},"_npmOperationalInternal":{"tmp":"tmp/mock-apollo-client_0.2.0_1565214935290_0.12077990200843347","host":"s3://npm-registry-packages"}},"0.3.0":{"name":"mock-apollo-client","version":"0.3.0","keywords":["apollo-client","graphql","mock","test","testing"],"author":{"name":"mike-gibson"},"license":"MIT","_id":"mock-apollo-client@0.3.0","maintainers":[{"name":"mike-g","email":"mike-g-npm@outlook.com"}],"homepage":"https://github.com/mike-gibson/mock-apollo-client#readme","bugs":{"url":"https://github.com/mike-gibson/mock-apollo-client/issues"},"dist":{"shasum":"06fc01ea49e174094199e0bbb4c22372fa4ad817","tarball":"https://registry.npmjs.org/mock-apollo-client/-/mock-apollo-client-0.3.0.tgz","fileCount":8,"integrity":"sha512-Y2+HFwogL9v43VDLToMijEbskaNHrRhOz82i4nqDetCxf4dG2Trut/LRBaNhHlRHxzKueuLAPZxEwTlnjt6iGA==","signatures":[{"sig":"MEQCIAXRNvZ2fIr/Jblw2ej+R1qtyWfJzUAEPjttV0CLZhDqAiBKEJRzzq1HyRMDKdg4kpfEvhxNQYdebTyj7mI64Tx7YQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12238,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJee8UbCRA9TVsSAnZWagAANFoP/2dTUOpzhLrm3dj13sTd\nzGx8p2qd6zBk3OXGYr59+XR9udPE7zJV8dqQdmMNCzLFpc5jtBrvvBm9KGmA\nvX7WHgqeT2672XdmbckDpM9jiBs9UceTF7NMu1xjpIFUaUU7xU/JdsrT3TwB\n/a7HZEsNxzXVKDiZnKgQvLxYlSr7O3bUfS24e49Jnu5t+8sHVKgOcbYrz/3A\n0lW+5zS9RcxQM9WYaqumtxQ0EfYdBQSZhTzlrlh0sCbh9DNN55kL3MJSkk0l\nUaSQY5k3gLpF8YixDuGM0jD+H8Hs+v0t5fov4FEHNKzj2VWz8refHKYh+KOI\nFSfTtrwz/o9yVrrveNlRb42ODDIE1dQ336/3mOX9N5eA2kQsq7LaYUSr662h\nbrGcyUizw358j9odckHbzfc2UGq4/xurTSUJizJuchVwT+RdKEmCdmD4fBHF\nZh4ty+gZZQZBA8k6E01mS8oJf36vSdCU4pWsnJea0TOPoCFVJ30TbqQb0xVB\nO2VMjfcI/gRCfbyuXzZ5u/1/3rd79Je+uI90wl6/1R9f8qeUxQVZX/zD9XMq\n+5st4AMlFq2NwQza+P81gPsvO2+jj9dACK8deQ1LEBmBhd0exalMUEnfwbMZ\n7k0Zal0ac8wQCyHojLny9d7pTVEBOTFEZCBPGndUDrGi9CVl1eQx3PIvozMi\n6Elb\r\n=+6Pr\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"3e3214df5c0c4d02151b4bce029c7e44825c1b70","scripts":{"test":"jest","build":"rm -rf ./dist && tsc","deploy":"npm run test && npm run build && npm publish","test:watch":"jest --watch"},"_npmUser":{"name":"mike-g","email":"mike-g-npm@outlook.com"},"repository":{"url":"git+https://github.com/mike-gibson/mock-apollo-client.git","type":"git"},"_npmVersion":"6.9.0","description":"Library to help unit testing when using apollo-client","directories":{},"_nodeVersion":"10.16.2","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"^14.4.2","ts-jest":"^25.2.1","typescript":"^3.8.3","@types/jest":"^25.1.4","graphql-tag":"^2.10.1","apollo-client":"^2.6.3","@types/graphql":"^14.2.3","apollo-cache-inmemory":"^1.6.2"},"peerDependencies":{"apollo-client":"~2.5.0 || ~2.6.0"},"_npmOperationalInternal":{"tmp":"tmp/mock-apollo-client_0.3.0_1585169691096_0.5521149498462794","host":"s3://npm-registry-packages"}},"0.4.0":{"name":"mock-apollo-client","version":"0.4.0","keywords":["apollo-client","graphql","mock","test","testing"],"author":{"name":"mike-gibson"},"license":"MIT","_id":"mock-apollo-client@0.4.0","maintainers":[{"name":"mike-g","email":"mike-g-npm@outlook.com"}],"homepage":"https://github.com/mike-gibson/mock-apollo-client#readme","bugs":{"url":"https://github.com/mike-gibson/mock-apollo-client/issues"},"dist":{"shasum":"556a6090b1816dbf07e51093b652aca84aee979e","tarball":"https://registry.npmjs.org/mock-apollo-client/-/mock-apollo-client-0.4.0.tgz","fileCount":8,"integrity":"sha512-cHznpkX8uUClkWWJMpgdDWzEgjacM85xt69S9gPLrssM8Vahas0QmEJkFUycrRQyBkaqxvRe58Bg3a5pOvj2zA==","signatures":[{"sig":"MEUCIQCfYwCxgT7fQWJYQSm4fW6sHSSJCoLpcel4pFvBqktrGQIgRb7jIOD1nOwVYfQcl1LGnkImHo9jfTxw4sYJqM15Qks=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13526,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuv9VCRA9TVsSAnZWagAAcL0P/1ayA3SxdPOZ7vUVYNIv\nEkAMCdojBDdiAMEGVxCQvlqSEVdgV4XkA33kUMvpzvKBX3VKsDSf+M1dmeSP\ntrbYQlaypKffwOb+exS460Sw3ivS9q7F84a23FFj34OcCaxfsKdXX5FP5E39\nN6vhi0qF4wrrusmXFMLZQ51PEmy8hHlAM44L2JBAchB5e7OPgh8DITuI27JV\nbjAnZlLx/BeccD6ZL2hA7GMhwZHunmBC0ooA5+l0ZW062peXUZnSaXMYRhGn\nZrJBFuOXnVu6SblY9HCHCwfDG702qmK86sQ1IB6ABCB1jczURAZZGB92Kghc\no4+LxtaSC4j0coeuoHpiCVrb/iPpvF/0qFIV2zNiLQalGfSk4XQLdy4H9+j2\nFSH/vFmY596+aLPLoENdaWcMYps/B4QsWnm7exxlxa44h07rhPXwszHpVmIL\noE33DxCg7N9laivuCEZ7fcgWlMGff70MgCESBAiIGL0dWlWQo0o7GrjD2wjX\n+sQa+GiAyZXwY0hD9QNMQcUauIbfYp9/iZO6dvq+TL7+bRDgJTPCvVu070tt\niKfJsejacn6dc4OlCAKTF0ftehDZA/kHL7fGAhqBz9/6FIMPCvh6ZCdIjKK+\n0Bjie/ZTHfzxP+x+nd3YBM1PK4KSlAGKndJoF/yM8Xeg/TpYbcl8VxqQNoaC\nLNcG\r\n=EZ+e\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"e46985892c8e5a7be5442022b4a21686330e406f","scripts":{"test":"jest","build":"rm -rf ./dist && tsc","deploy":"npm run test && npm run build && npm publish","test:watch":"jest --watch"},"_npmUser":{"name":"mike-g","email":"mike-g-npm@outlook.com"},"repository":{"url":"git+https://github.com/mike-gibson/mock-apollo-client.git","type":"git"},"_npmVersion":"6.9.0","description":"Library to help unit testing when using apollo-client","directories":{},"_nodeVersion":"10.16.2","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"^14.4.2","ts-jest":"^25.2.1","typescript":"^3.8.3","@types/jest":"^25.1.4","graphql-tag":"^2.10.1","apollo-client":"^2.6.3","@types/graphql":"^14.2.3","apollo-cache-inmemory":"^1.6.2"},"peerDependencies":{"apollo-client":"~2.5.0 || ~2.6.0"},"_npmOperationalInternal":{"tmp":"tmp/mock-apollo-client_0.4.0_1589313365479_0.9947799630598846","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"mock-apollo-client","version":"1.0.0","keywords":["apollo-client","graphql","mock","test","testing"],"author":{"name":"mike-gibson"},"license":"MIT","_id":"mock-apollo-client@1.0.0","maintainers":[{"name":"mike-g","email":"mike-g-npm@outlook.com"}],"homepage":"https://github.com/mike-gibson/mock-apollo-client#readme","bugs":{"url":"https://github.com/mike-gibson/mock-apollo-client/issues"},"dist":{"shasum":"412292a0119fd8da832eb13e7d3aefdbf1df2bae","tarball":"https://registry.npmjs.org/mock-apollo-client/-/mock-apollo-client-1.0.0.tgz","fileCount":10,"integrity":"sha512-WfBEp5kPqC4XUHjWu56tJ2MoNcUdQA6MIp0fV8EQ+qqbcluUDANbTflv55x7YUYQuQxkQT9qydOmmGeceTGjyw==","signatures":[{"sig":"MEUCIQCenB26mJUItPsCJ4azeJS6EiJ7tGma/2NKoTlHyEg3dQIgacRGCxGeOP1i6ubfColO8nGxuuxjiKJ4U8irk1A9keo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15803,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPvUyCRA9TVsSAnZWagAAsnAP/RPAreGRxQwNAHIj/PS0\ngryZ6fLYon78wzWZApYDRR+CjFulDNXk9kkuDl+6YpO11xaoW5UtaCjflPgS\nJDttwnVFMA+U3YyFg1asJyHZjjHhupMCUHp2OB7CGBrlPcsVdBfhNhnnB16J\njeFKXgT2fiU6smLJPZ5y3DIjMgPdDWbVmPPiTfNLs9JYHgjEaqD+biPSR9o4\nUh5kazga5K5ymBANcZ4W0El94zCmxaJugfZljHNJVdLqOZTOqTNNxPRz2HTa\nJp0H+5hz0jQ4MZ5n3oAfJI50D0yia7GFDGnfokeGoUxbDXxKALrfG4dwWbeP\nE9AzuJmBHJcvkP8lVeSwFgYnW6mPlmqK5M+kBsR1dJDE1pLlzZsKcOIBJzi6\n+CVY2Mxv3dfWVP1BCDV+jLgYp2cJbAeVpib+UIbd/WdE3W33NdRb4N16bvkP\ntZb+GQw5KNjuN42yN4MmUAH2BXCi4EPlnOVsKZ+5bKXRzrXPaEfW/Ogf7D+e\nQY1SWBEGWHiYtF8xzlHYPXboUyu1BQJUwZpzrg4DrSVOEnuUijwyaDUZLtLV\nVZihWEe4cVXscHwpRlE67J2KH9PuRjx4zJ9HwrVmLO2F5+HJ7ls3sKUNXGwp\n+vWnU2TsDtrwj2DtZ7tlaAhvnbzYG6+eWBa/Yp8kay4VOPCtX3E3kllbNZpA\nkjpH\r\n=x7iR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"a4161a646faf36098129288fbb6eb1f4080b39b3","scripts":{"test":"jest","build":"rm -rf ./dist && tsc","deploy":"npm run test && npm run build && npm publish","test:watch":"jest --watch"},"_npmUser":{"name":"mike-g","email":"mike-g-npm@outlook.com"},"repository":{"url":"git+https://github.com/mike-gibson/mock-apollo-client.git","type":"git"},"_npmVersion":"6.14.6","description":"Library to help unit testing when using apollo-client","directories":{},"_nodeVersion":"12.18.3","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.4.1","graphql":"^15.3.0","ts-jest":"^26.2.0","typescript":"^3.9.7","@types/jest":"^26.0.10","@types/node":"^14.6.0","@apollo/client":"^3.1.3"},"peerDependencies":{"@apollo/client":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mock-apollo-client_1.0.0_1597961522324_0.4152134327490429","host":"s3://npm-registry-packages"}},"0.5.0":{"name":"mock-apollo-client","version":"0.5.0","keywords":["apollo-client","graphql","mock","test","testing"],"author":{"name":"mike-gibson"},"license":"MIT","_id":"mock-apollo-client@0.5.0","maintainers":[{"name":"mike-g","email":"mike-g-npm@outlook.com"}],"homepage":"https://github.com/mike-gibson/mock-apollo-client#readme","bugs":{"url":"https://github.com/mike-gibson/mock-apollo-client/issues"},"dist":{"shasum":"8f0d6a1ba0d349ebde87a1dcd85c7fd353076922","tarball":"https://registry.npmjs.org/mock-apollo-client/-/mock-apollo-client-0.5.0.tgz","fileCount":10,"integrity":"sha512-qdMUt1NhmNXLjHd/IaHbvbX5LaEE91WZB4glfj7AfUUs413/z148kBuXKg6XpMZqvJr+XdR/9i1V+YGY7UnCKA==","signatures":[{"sig":"MEUCIQD3Zb4PEd3TwPmdvrNWCy1NArGh70gIWMk+JYLFCvdAPgIgB8Toc23GKlfYz6m5v8gdTAwiqG8O01d6dV5DPN79EH8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16103,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfzrtmCRA9TVsSAnZWagAAFLAP+wYjWtH6AaY4G6LgDeRF\njnG+Bhjq4X+oD54GuZilcFyKl52T0VxZk0LeuwipQkj88yGd2TITKlAN78tf\n3iQah8iJ4x4BNB1a0GBD4+uHz39UU9c1atQALliytmELrEtUJBfGcOCTZOSL\n8YvHkVrlXnHBgOVOg0ISBg29HR6SD/c5RhdKlNpdSSGACWUceWJVgy56vjdV\nBhyAMDROyKSVsdJ9jA/3tXmkLuJs+52mR4p9aMz8ilh3v36ar4C6LakU4Brj\n5NTcEFqgfWsTgiWo4269nyI+MKmefDe4R0clJ5Lk1LWR1cK+VuUPLD3D9sPT\nhi6albZh8mFMvXbHqohcN34OOpJWZW9F+HxE+PNHyhNOxFOqHeNmxP2iSNQf\nnCmaVFbiReqL6jQ6roLTOi6Nz7ZBXGiJED6vN1lAmnE/0c5eQqbuS5Rigu67\nFzzuORLEgwVZ9oL9/JoskHvT4h4bqAOhyEETsPTFsnq/xzziS5zugpNUnuVa\nKee7IPWFXEoRXYIh1mUxfX5w9Eiy0giJFKLKunRXatmqsaNv2AP8zTb4JGjM\nElMcyMYpVcYyQ+IlEu/U1gQw81h69s2tCaDD8igDW03s2JUKdsItmd074R0P\nJ6mSLdyZHGDUql0CulLN/HbagyFydxz6Q+uoj+ojRy1SZgw3M6ChFTgX9q2D\nv9/g\r\n=Ejdz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"7b58acd4bcfa18dcec6b2b08d4184b832b28ec5a","scripts":{"test":"jest","build":"rm -rf ./dist && tsc","deploy":"npm run test && npm run build && npm publish","test:watch":"jest --watch"},"_npmUser":{"name":"mike-g","email":"mike-g-npm@outlook.com"},"repository":{"url":"git+https://github.com/mike-gibson/mock-apollo-client.git","type":"git"},"_npmVersion":"6.14.6","description":"Library to help unit testing when using apollo-client","directories":{},"_nodeVersion":"12.18.3","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"^14.4.2","ts-jest":"^25.2.1","typescript":"^3.8.3","@types/jest":"^25.1.4","graphql-tag":"^2.10.1","apollo-client":"^2.6.3","@types/graphql":"^14.2.3","apollo-cache-inmemory":"^1.6.2"},"peerDependencies":{"apollo-client":"~2.5.0 || ~2.6.0"},"_npmOperationalInternal":{"tmp":"tmp/mock-apollo-client_0.5.0_1607383909937_0.6557343676066272","host":"s3://npm-registry-packages"}},"0.6.0-feature-fragments.0":{"name":"mock-apollo-client","version":"0.6.0-feature-fragments.0","keywords":["apollo-client","graphql","mock","test","testing"],"author":{"name":"mike-gibson"},"license":"MIT","_id":"mock-apollo-client@0.6.0-feature-fragments.0","maintainers":[{"name":"mike-g","email":"mike-g-npm@outlook.com"}],"homepage":"https://github.com/mike-gibson/mock-apollo-client#readme","bugs":{"url":"https://github.com/mike-gibson/mock-apollo-client/issues"},"dist":{"shasum":"ed0e69ae0d12b458c170f6d4d780702ce494fff2","tarball":"https://registry.npmjs.org/mock-apollo-client/-/mock-apollo-client-0.6.0-feature-fragments.0.tgz","fileCount":10,"integrity":"sha512-PSlpWX5mISfWLcxcB5fWrFgsYge37rmd5XzCM0+McuIrqpj8+Gg/mMnmCoOi9QwBUJ/itCiGXyJm2mh8YXU1zQ==","signatures":[{"sig":"MEUCIGGTUw+641tMLJaYvpa6VjXiMCzbFb07ezI47BVcf6EFAiEA1Wy+XzjjEhR5mPwntAxgdTd0kNplZLmhwwJZxZZcXZ4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16139,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgX8kCCRA9TVsSAnZWagAAjTAQAIQux8VdISvk0MjSsvPS\n/gxvN0corRMIWIPsmNtAlfrdpD+ppSB8iHqn8iNv2JYho2qGuWEkleuYF9N0\nBKNMyxiZySUATAGXofSRynLqrOIdmWgnjdaVzISH6Rgj8C7lM3gQgOqWmu+b\nF9WKzc5pk1fLbS8+UEdCFKQ6tRo1QeP8sjsQ2UOAHj7V+98muMhaKUKEPAZz\n8ZakfV1LypNZDY5dLlwoe6ZeEjadE0/8W6Ehlc4zYt7/rA7vxkQu1aFuu32B\n3ADpxwi7+FiVlXux961sUM0BryOjIEc86qNo1I2gZIcBCkvGMvQjxjJn6J4k\nP8Ep7z/NHxXNhVRCo9WXjDyokDguLXOOyOhFvbwtg+c3sy03GykGyADlGtYV\nMwmavRHB0XKoVtvgngDYL01CsVCfhb/U+nQfrwJcLBoEGykdORajGxhMh8Bv\nsvILmcxlSLtvjeiaxI2R+Z3ZLTXGl8U/puJEbsKBQeXlpu/3Q/vYMYgIHtrf\nm3wz9YyX/tjngegpdFwgCY/XePsNe/PCapvPwoOSwxygJ0PBS9sc4fguHu8T\ndo3vybJekX2cH9dITiZQIBUjrdnCZTbbWr5GwLSz8OLSGkpNrieiAx6knbCp\nCLJrToRiLvnW3QJCQqHkZhuKopWx1Ms2LkWzByW7L+0bS8fwFjBC6LTXw5rP\n91rO\r\n=CJA/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"554a0bb530fdbbf479075da44ce12ad11d92afea","scripts":{"test":"jest","build":"rm -rf ./dist && tsc","deploy":"npm run test && npm run build && npm publish","test:watch":"jest --watch"},"_npmUser":{"name":"mike-g","email":"mike-g-npm@outlook.com"},"repository":{"url":"git+https://github.com/mike-gibson/mock-apollo-client.git","type":"git"},"_npmVersion":"6.14.6","description":"Library to help unit testing when using apollo-client","directories":{},"_nodeVersion":"12.18.3","dependencies":{},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"^14.4.2","ts-jest":"^25.2.1","typescript":"^3.8.3","@types/jest":"^25.1.4","graphql-tag":"^2.10.1","apollo-client":"^2.6.3","@types/graphql":"^14.2.3","apollo-cache-inmemory":"^1.6.2"},"peerDependencies":{"apollo-client":"~2.5.0 || ~2.6.0"},"_npmOperationalInternal":{"tmp":"tmp/mock-apollo-client_0.6.0-feature-fragments.0_1616890114291_0.0540347348276633","host":"s3://npm-registry-packages"}},"0.6.0":{"name":"mock-apollo-client","version":"0.6.0","keywords":["apollo-client","graphql","mock","test","testing"],"author":{"name":"mike-gibson"},"license":"MIT","_id":"mock-apollo-client@0.6.0","maintainers":[{"name":"mike-g","email":"mike-g-npm@outlook.com"}],"homepage":"https://github.com/mike-gibson/mock-apollo-client#readme","bugs":{"url":"https://github.com/mike-gibson/mock-apollo-client/issues"},"dist":{"shasum":"ff1760f18798789931e421c6668bfc0e7f1f0649","tarball":"https://registry.npmjs.org/mock-apollo-client/-/mock-apollo-client-0.6.0.tgz","fileCount":10,"integrity":"sha512-HPo6yVkAE+uxIpB8oPO9ISM86hFDwefrHKz5uOowecT/hR79e/NbXAl372LOQ1lWYVNVgCaP3RIMgWEhVFWtjw==","signatures":[{"sig":"MEUCIDOCjQAEgdpkVfpGpB1IoFHsSSKiG36qDK2WtFhBQVCPAiEAujfFSlTfCapSd0WnVBTZj07YRbxuzVr0IKs6FUenKUc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17502,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgZfl3CRA9TVsSAnZWagAAHwYP/2KfPYUZiksQKPPZjzll\nolX+iQh9ATTAZAS1KEjTSzDGqVPZzOmESnoo5jwKCQbEuCNGxqkfbnZkW/AB\nOmL+wnpbVORVsln5VmFo4HW8OqGBPX9LD6oVchFbUdTDfvFGXmNiatO//i6d\ndTtQ9TA0CY4ZRjGlJXo2sTagbW+5TOb/soIwfQhMLtsdLZeFaDnp15+3JAer\nHiUxOC88Ke8z4NYpHtUyyRYhkS0UFp7aMqTvDmE4/0/bspWqwl7I3QrocKMe\nw/oorspFPMseo7dJrFrVEHu4f5+sHUP706XEWfijdpfjFxEZlRsPUxBet/8E\nMI5aR8Zv3YCfoHaBH776d+7zDsoLmh1QGqR5hEjcMpgI6OqBePv/D+Xkcz4S\n1UQz0jx3AJ2AcCYvsNmRs2vZ85o5uy5kDCkVXk4r7luSrg8WquDkOk+0M2V6\n7FtnN7L3URBaHCENk5SkL+xm/ivlnBUsZ/PkGQR11cIpIILAVikFffHM5Z3d\nrTUS5G34DAoWIpvFmZb9Ma6sCMqPCeIHECQW5le6dzHcnYi4Y+W9T+RtwWOK\nZ5cyn2jyDG8bPGsjC4b6xPwHzRcw+1sroSTtAyu6faw05O17iE3ql1fsyuuA\nDJ2yyuqg5xYfKECuFaWcvYfEE8/8i+aWcfGeFXdSl6g4PM57A0bsckalrx4d\nvySF\r\n=BmU9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"d65ab98cbb76c878e499dc8ec37f75a62c1b0e13","scripts":{"test":"jest","build":"rm -rf ./dist && tsc","deploy":"npm run test && npm run build && npm publish","test:watch":"jest --watch"},"_npmUser":{"name":"mike-g","email":"mike-g-npm@outlook.com"},"repository":{"url":"git+https://github.com/mike-gibson/mock-apollo-client.git","type":"git"},"_npmVersion":"6.14.6","description":"Library to help unit testing when using apollo-client","directories":{},"_nodeVersion":"12.18.3","dependencies":{},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"^14.4.2","ts-jest":"^25.2.1","typescript":"^3.8.3","@types/jest":"^25.1.4","graphql-tag":"^2.10.1","apollo-client":"^2.6.3","@types/graphql":"^14.2.3","apollo-cache-inmemory":"^1.6.2"},"peerDependencies":{"apollo-client":"~2.5.0 || ~2.6.0"},"_npmOperationalInternal":{"tmp":"tmp/mock-apollo-client_0.6.0_1617295734887_0.3454977218273314","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"mock-apollo-client","version":"1.1.0","keywords":["apollo-client","graphql","mock","test","testing"],"author":{"name":"mike-gibson"},"license":"MIT","_id":"mock-apollo-client@1.1.0","maintainers":[{"name":"mike-g","email":"mike-g-npm@outlook.com"}],"homepage":"https://github.com/mike-gibson/mock-apollo-client#readme","bugs":{"url":"https://github.com/mike-gibson/mock-apollo-client/issues"},"dist":{"shasum":"0589ae458a2539518e870bb0c08961f30a9eaec1","tarball":"https://registry.npmjs.org/mock-apollo-client/-/mock-apollo-client-1.1.0.tgz","fileCount":12,"integrity":"sha512-OXCvwAwwHbieMMipcE3wGdPONPHC+f65EEiyC1XpYaS5Jk6/c7oBe9t8knwzAqyCQ9nZziHdR8UDqORPTfkcFw==","signatures":[{"sig":"MEYCIQDv7wj6AqexqpeYgobBXiKcyEF/JTG7lfkat2lEX+UUoAIhAJgU67dIynDr2EMdaW7oRjlFx8MZpFvab/VI/zZ9lprk","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23735,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgcdrjCRA9TVsSAnZWagAA5CoP/jENRMd6E9bMPXutKGDo\nDjv65QPkV2qTZ7oTE9dOAGaXaPIvCcWzg1l96hGN4tX5RNtAbQnkcUtuKedK\nlSXToMf34cPIa+Zr3bFd/HrP7FBckXyH+x3hBGnKaGNxrIqrwMAINbt0E+PE\niqFuL/t1l4iuK/nQCC9DJ5M+jZeX4MW7eP/cjem4QylnZKrSm1vU05hFWJn5\niYjWXj2A6kXcuftAuSlYiuW8vgYSXskqvp9Zs1ZHyOA3eWIFPC0AM3zsDxc0\nr6gPsR2TQGLkF+IKi7H5ArJBXasYVVdCPeROz0wGKj6cVE4ui+eQ0IPvkd0W\ni4VISsVJFqYjyrERtPE/cgSIekIsnlxbeIFLJYL0x4Q92ou/8CtiRxAOmJ8m\nkc33l5xgOjLCI/i01t66PSYtGAclY6gMqIF7laXRdmiv9audtpjjiyGP+bxw\nMrH7UJQ7j41z3AaEFKfVL2/Q6+z4hiDG8+AyAmQeSLCn0bsPIGM23p/QwTSp\nRKuTPbtXdkFTuuL3qnFwnqVJqfDjTH4x0uTFnLuBRFdrvl4TTIKTjiB4vGBa\nlTrHLBE7tQIZ3iMFaC9a2RWTQzdIsITKAaHFdZLdciemcCAxK6rLk8V4z7nG\n3vbfACPflq0NPQQB9OdUfXUEJh5LNTogjyV1h/YD4CM9g1QziDhwfBOo7F7B\nOQu/\r\n=IQwK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"aaf6900db1960c81cb13f55ddbb3ccd2e57b142e","scripts":{"test":"jest","build":"rm -rf ./dist && tsc","deploy":"npm run test && npm run build && npm publish","test:watch":"jest --watch"},"_npmUser":{"name":"mike-g","email":"mike-g-npm@outlook.com"},"repository":{"url":"git+https://github.com/mike-gibson/mock-apollo-client.git","type":"git"},"_npmVersion":"6.14.6","description":"Library to help unit testing when using apollo-client","directories":{},"_nodeVersion":"12.18.3","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.4.1","graphql":"^15.3.0","ts-jest":"^26.2.0","typescript":"^3.9.7","@types/jest":"^26.0.10","@types/node":"^14.6.0","@apollo/client":"^3.1.3"},"peerDependencies":{"@apollo/client":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mock-apollo-client_1.1.0_1618074339084_0.8744465182531029","host":"s3://npm-registry-packages"}},"0.7.0":{"name":"mock-apollo-client","version":"0.7.0","keywords":["apollo-client","graphql","mock","test","testing"],"author":{"name":"mike-gibson"},"license":"MIT","_id":"mock-apollo-client@0.7.0","maintainers":[{"name":"mike-g","email":"mike-g-npm@outlook.com"}],"homepage":"https://github.com/mike-gibson/mock-apollo-client#readme","bugs":{"url":"https://github.com/mike-gibson/mock-apollo-client/issues"},"dist":{"shasum":"5f70e75c842a9f3b3da2252f68fd47f2d9955f77","tarball":"https://registry.npmjs.org/mock-apollo-client/-/mock-apollo-client-0.7.0.tgz","fileCount":12,"integrity":"sha512-r0ICU01m007W0MwMej0lzlg1REtepDZ15Fyj8Hz9tiW/1TPb0PyHryGykrg9YhfbB8/+ZF2ovz+88yMF75TDoA==","signatures":[{"sig":"MEUCIQCzl/qm7N0QoVjpFGgU1CLn5z1y6DhuLB4JgLCQv/edQQIgBDJVC6pPbElHWAEkBEDXDdceboeZKTTXK0qoDRKxZ1M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24896,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgiFA9CRA9TVsSAnZWagAAGu4P/RcUrj3J1AZa7iIR7tlE\ngSUr50PfOoo/3MfBTrx+0ztZbIL1XjNwsPJ2L2w8fy9X70N5E0kI/ZY6WMS1\ndhDtsJGX/Algtcr2b5C5zKJZNiKjOO9vYgXfVu4fEZsdqMoBEXeFeSFunoBP\n6r8oA/q839LcVljPHTad/c7iA+dWB0P0wdo59Cw/6RrqTucW3tFJJ4+m4IHE\nqLq76Ej802SeMa3RUglu3hvVE9BUMlwytfChH76yxi/QlPJIQJXMOKG8FHod\nd3uvWlgfyku5CmCLSHk8h6zRgs0Jn3hCQTpTr0nOM+dyaoM7YDVeVbPZh4qB\nD4V3se0h7ocxZVy0czlww5rrqayJ+/BrxVd9J8k+FlQ46S3vQVQcWV09U1Du\n6B9gZdRZ/y0VTgIuZBQzWo4IvxhQYXw0VYSl7bFKN9x9BQZTQpcMiCRx47pp\n2UsPNGlkj1c9zrMp6AgHQ8ov2Dzy4yzZB5WPTP/dZMfe7AP8TgqXiqAz1tgu\ndbpZahg1eFAjyhvhlcN2STaCfvWIdxHNc5lY28B3pDU7b2ATe2keeh5COXAH\n7NVrV5GiLdcqyBoGf95FdrEUETUuLzhqNWrlxLnjDifFiXcVSrUJGistLdWe\nsmFXUrHEH0y56goPfpQEDj6koI90jg424ydxBmOtC+wu7kqFlwfZx61mWJHJ\nvbjz\r\n=0VsP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"ac94e43c7c19f61229d8e36f56ff6f828a87dbef","scripts":{"test":"jest","build":"rm -rf ./dist && tsc","deploy":"npm run test && npm run build && npm publish","test:watch":"jest --watch"},"_npmUser":{"name":"mike-g","email":"mike-g-npm@outlook.com"},"repository":{"url":"git+https://github.com/mike-gibson/mock-apollo-client.git","type":"git"},"_npmVersion":"6.14.6","description":"Library to help unit testing when using apollo-client","directories":{},"_nodeVersion":"12.18.3","dependencies":{},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"^14.4.2","ts-jest":"^25.2.1","typescript":"^3.8.3","@types/jest":"^25.1.4","graphql-tag":"^2.10.1","apollo-client":"^2.6.3","@types/graphql":"^14.2.3","apollo-cache-inmemory":"^1.6.2"},"peerDependencies":{"apollo-client":"~2.5.0 || ~2.6.0"},"_npmOperationalInternal":{"tmp":"tmp/mock-apollo-client_0.7.0_1619546173342_0.5668032623950361","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"mock-apollo-client","version":"1.2.0","keywords":["apollo-client","graphql","mock","test","testing"],"author":{"name":"mike-gibson"},"license":"MIT","_id":"mock-apollo-client@1.2.0","maintainers":[{"name":"mike-g","email":"mike-g-npm@outlook.com"}],"homepage":"https://github.com/mike-gibson/mock-apollo-client#readme","bugs":{"url":"https://github.com/mike-gibson/mock-apollo-client/issues"},"dist":{"shasum":"72543df0d74577d29be1b34cecba8898c7e71451","tarball":"https://registry.npmjs.org/mock-apollo-client/-/mock-apollo-client-1.2.0.tgz","fileCount":12,"integrity":"sha512-zCVHv3p7zvUmen9zce9l965ZrI6rMbrm2/oqGaTerVYOaYskl/cVgTG/L7iIToTIpI7onk/f6tu8hxPXZdyy/g==","signatures":[{"sig":"MEUCIQCvu+vblAooi8mHXvHsy6tcZCuEBqEjSmeHMyNRmb7DXwIgEPwy5MJ+f0/nR8T0MidpLjX3GQXhkzCBkAycKpACIlc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25808,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhEl8ECRA9TVsSAnZWagAANkoP/RTTqGOp2WkaA9ZKnQEc\n806AWxLpwVIAh2HQhrzy/3eteK94izsVyMJQbtFno2CbyZcFzDqR7ACUOBN7\nI7DcDoGn8iZGH1a2DIALUi9k3A3Z+b658xo/YEAiGEiCVH0snXL7rwMYT6P5\nlixPQ3PHm8F/XRUG4c1o0o3G3g+AEz5nw7/xKzsai0OTrj8Xtr18Hj/RqEoF\nwXm7xKHRS6wCPJkGtGSVeb4kUrl2CUBPz86clPedGMZRghkZ7g0lxM5Eheqc\npjOJHPZpPcmnY/62RKFZWz2PxYThxo0avIRzxxRxrFJOVaVPT4fu7IgxG1jR\nS+v+mFxJdirGRtbwCjcPDyKzA6rqPevkHYpAvDB5TZ1ukivEW3VbWv3KywgC\nQXWCxZquTNTZq53a0B8qIftFKrZ/T+95pL5B4dd8iJaXmc9Gf5i/nclcb021\nFX1eV537sxaeCgtPyMclYJoxbLK/nKnu9ApvjsFLb40CZQ2PiDvJjwHpNyXg\nUjGH6R4q0FzOfgz25UQqILmLt4gFCueszY+NpkT4g5cVEcK7pqw5l2oZ4xQD\nEmtGNLG7xgHrKhOphs2bbPFSS6FLvMIMCvjB/SyqsniSQV2OBMW8HFzmBwp0\nQG0vsy3CUaW3eOxveE0kKXOFDsuVZwXI3Q/m+z5FkknZ1+f9MbNEVPWejY4t\nt8fJ\r\n=cVpn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"7a04ad554245b0098bae3bb840788b62bc2d75c2","scripts":{"test":"jest","build":"rm -rf ./dist && tsc","deploy":"npm run test && npm run build && npm publish","test:watch":"jest --watch"},"_npmUser":{"name":"mike-g","email":"mike-g-npm@outlook.com"},"repository":{"url":"git+https://github.com/mike-gibson/mock-apollo-client.git","type":"git"},"_npmVersion":"6.14.13","description":"Library to help unit testing when using apollo-client","directories":{},"_nodeVersion":"14.17.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.4.1","graphql":"^15.3.0","ts-jest":"^26.2.0","typescript":"^3.9.7","@types/jest":"^26.0.10","@types/node":"^14.6.0","@apollo/client":"^3.1.3"},"peerDependencies":{"@apollo/client":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mock-apollo-client_1.2.0_1628593924298_0.4482864090272236","host":"s3://npm-registry-packages"}},"1.2.1":{"name":"mock-apollo-client","version":"1.2.1","keywords":["apollo-client","graphql","mock","test","testing"],"author":{"name":"mike-gibson"},"license":"MIT","_id":"mock-apollo-client@1.2.1","maintainers":[{"name":"mike-g","email":"mike-g-npm@outlook.com"}],"homepage":"https://github.com/mike-gibson/mock-apollo-client#readme","bugs":{"url":"https://github.com/mike-gibson/mock-apollo-client/issues"},"dist":{"shasum":"e3bfdc3ff73b1fea28fa7e91ec82e43ba8cbfa39","tarball":"https://registry.npmjs.org/mock-apollo-client/-/mock-apollo-client-1.2.1.tgz","fileCount":11,"integrity":"sha512-QYQ6Hxo+t7hard1bcHHbsHxlNQYTQsaMNsm2Psh/NbwLMi2R4tGzplJKt97MUWuARHMq3GHB4PTLj/gxej4Caw==","signatures":[{"sig":"MEUCIE3Bhqr20JtMT+LrHhf3a+IceoRkjPH+vfdGc67XiSf/AiEA+CP+xhHHW8b1YHSl2u1Q3sGP5KQiIRvVL9tO2PbqhEY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23621,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi95opACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpxDg/+LraU1yHzrWF0bCkK4IrmB1Cuqr3oQSyhdcxfszxYR+dXbfme\r\noBSNZ+Pu5RWN06TDOP4ZpSVd/PxWzqYhUVXBa3Nv+9fL6UvGQlhhUxy675KB\r\nAnlvf5SFiP7ITwy+iHEOYpRZRkbchHMTeQXSu6b5QEugb+YUuSLpVuOF51Xj\r\nwNlfxq/rLhKNxV0wMLxyfETI3rvQSo/viPxbAoXmNkzVWHs8uyXeDG9Pkw3W\r\n5efGj34bjaStxSU1GARf8n+N5C0kytRz2ubI/PMmGMa64ayQb7rD6+60pjyc\r\nOcK3RuFHQd93tfyE0ULD55hu0RVSQBHnL4tyJEBe5uMH3O2jGaiXmHPQU4CD\r\nj23i9PZvwK1hYniuSaDk9nySQBdODp+F9FiH3psv9X5QT8eyl9aP4+p7+Fms\r\nWikZMqMo0rZwTvp3RZNUuuo/ubkJNR/JcA5gaK1iZtEztoF6gvMp5M01IJky\r\nvbQB2BxlXD3LAlGmYmLcSc27yCiG3mFJ2YzYAJFeMHYSGADoAp1jrDT5kWM2\r\notNtVnfLO9ggh2QqZyYT8pM8MIK+PkyvQScH49Cbu+EPHurpO8A92f6zdf4L\r\nmWEMHiYRetFxQVGkDP05/9965SGbnBozItlmS3/5v33UHpdfGJs2+G0pB6TX\r\neh560a9jpWXM3its1e0g/C58zOD2+hG2P1Y=\r\n=VS1x\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"331da81b54ef8ba4cadddae7ee9b1ff6f06f04cc","scripts":{"test":"jest","build":"rm -rf ./dist && tsc","deploy":"npm run test && npm run build && npm publish","test:suite":"./runTestSuite.sh","test:watch":"jest --watch"},"_npmUser":{"name":"mike-g","email":"mike-g-npm@outlook.com"},"repository":{"url":"git+https://github.com/mike-gibson/mock-apollo-client.git","type":"git"},"_npmVersion":"8.11.0","description":"Library to help unit testing when using apollo-client","directories":{},"_nodeVersion":"16.16.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^28.1.3","graphql":"^15.3.0","ts-jest":"^28.0.7","typescript":"^4.7.4","@types/jest":"^28.1.6","@types/node":"^16.11.46","@apollo/client":"^3.6.9"},"peerDependencies":{"@apollo/client":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mock-apollo-client_1.2.1_1660394025247_0.8058830723049162","host":"s3://npm-registry-packages"}},"1.3.0":{"name":"mock-apollo-client","version":"1.3.0","keywords":["apollo-client","graphql","mock","test","testing"],"author":{"name":"mike-gibson"},"license":"MIT","_id":"mock-apollo-client@1.3.0","maintainers":[{"name":"mike-g","email":"mike-g-npm@outlook.com"}],"homepage":"https://github.com/mike-gibson/mock-apollo-client#readme","bugs":{"url":"https://github.com/mike-gibson/mock-apollo-client/issues"},"dist":{"shasum":"21698549241b0e12586d4c8045f503714689e044","tarball":"https://registry.npmjs.org/mock-apollo-client/-/mock-apollo-client-1.3.0.tgz","fileCount":11,"integrity":"sha512-0SQM+Kc0qswkPXYRpmuXJlAtiGTm0vKW4yoaWUSDDw8m06iqJLE+SzJ4Sbxwd6kMyDuufsT3CEP76Do2BEvH7A==","signatures":[{"sig":"MEYCIQC8EnCwP1NLyRQJPkReEZLtCFPS1RJWWTI94kMn8LkqUgIhAPy+JN8ivzzZTvZIXfczqWi2bNi9Zz8fWkSzsPlgu6zP","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25420},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"64a717cb18733b3f4133a628f467e2bde6614df1","scripts":{"test":"jest","build":"rm -rf ./dist && tsc","deploy":"npm run test:suite && npm run build && npm publish","test:suite":"./runTestSuite.sh","test:watch":"jest --watch"},"_npmUser":{"name":"mike-g","email":"mike-g-npm@outlook.com"},"repository":{"url":"git+https://github.com/mike-gibson/mock-apollo-client.git","type":"git"},"_npmVersion":"10.5.0","description":"Library to help unit testing when using apollo-client","directories":{},"_nodeVersion":"20.12.2","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","graphql":"^15.8.0","ts-jest":"^29.1.2","typescript":"^5.4.5","@types/jest":"^29.5.12","@types/node":"^20.12.7","@apollo/client":"^3.9.11"},"peerDependencies":{"@apollo/client":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mock-apollo-client_1.3.0_1712783628695_0.3943743996586968","host":"s3://npm-registry-packages"}},"1.3.1":{"name":"mock-apollo-client","version":"1.3.1","keywords":["apollo-client","graphql","mock","test","testing"],"author":{"name":"mike-gibson"},"license":"MIT","_id":"mock-apollo-client@1.3.1","maintainers":[{"name":"mike-g","email":"mike-g-npm@outlook.com"}],"homepage":"https://github.com/mike-gibson/mock-apollo-client#readme","bugs":{"url":"https://github.com/mike-gibson/mock-apollo-client/issues"},"dist":{"shasum":"60e2ca989a5ae9f6ff968ccb2a2700ca3dc1a35d","tarball":"https://registry.npmjs.org/mock-apollo-client/-/mock-apollo-client-1.3.1.tgz","fileCount":11,"integrity":"sha512-jBl1YGofh9RpTUFfShwIumiry5qRkR1LYW12K1iZ576kMFh03psHTRiuY2k3dT6cUQ28RAK4gRFl9lVloazGhA==","signatures":[{"sig":"MEYCIQC20IfRCFjrCi7ShQbDk6GvUwCOwTJcrDLe1SNGw8415AIhAIrvb0/7q87EQNgm/yhFVZ/bdqXWDhVce2Iowgmxb5iv","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26127},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"d09afe05c9075cc98cc290b52aa734a0b2802fc8","scripts":{"test":"jest","build":"rm -rf ./dist && tsc","deploy":"npm run test:suite && npm run build && npm publish","test:suite":"./runTestSuite.sh","test:watch":"jest --watch"},"_npmUser":{"name":"mike-g","email":"mike-g-npm@outlook.com"},"repository":{"url":"git+https://github.com/mike-gibson/mock-apollo-client.git","type":"git"},"_npmVersion":"10.5.0","description":"Library to help unit testing when using apollo-client","directories":{},"_nodeVersion":"20.12.2","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","graphql":"^15.8.0","ts-jest":"^29.1.2","typescript":"^5.4.5","@types/jest":"^29.5.12","@types/node":"^20.12.7","@apollo/client":"^3.9.11"},"peerDependencies":{"@apollo/client":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mock-apollo-client_1.3.1_1712866458842_0.2848506375490818","host":"s3://npm-registry-packages"}},"1.4.0":{"name":"mock-apollo-client","version":"1.4.0","keywords":["apollo-client","graphql","mock","test","testing"],"author":{"name":"mike-gibson"},"license":"MIT","_id":"mock-apollo-client@1.4.0","maintainers":[{"name":"mike-g","email":"mike-g-npm@outlook.com"}],"homepage":"https://github.com/mike-gibson/mock-apollo-client#readme","bugs":{"url":"https://github.com/mike-gibson/mock-apollo-client/issues"},"dist":{"shasum":"ba029c35c64d3976fcc0c6518a7352154a36bb1d","tarball":"https://registry.npmjs.org/mock-apollo-client/-/mock-apollo-client-1.4.0.tgz","fileCount":11,"integrity":"sha512-uUz7p5Oa+Tqgtl4UaeLQ3QkfZb6fl4MBs/R99fKj4u/+Vmzh1vf74z8JQVgvarXZg0RM/oAFGFdqNuRigJFzTA==","signatures":[{"sig":"MEQCIEiDh4lmC44+jxdpZfz61x8+aBGlaVOwDf8p5+ZUeCTaAiATzKOrARHU3iMeh0J2f/LdPMol35R3jv703fNQ4MqdSA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":27204},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"b0155b94332e795829ecc0d259207a23e51db4ba","scripts":{"test":"jest","build":"rm -rf ./dist && tsc","deploy":"npm run build && npm publish","test:suite":"./runTestSuite.sh","test:watch":"jest --watch"},"_npmUser":{"name":"mike-g","email":"mike-g-npm@outlook.com"},"repository":{"url":"git+https://github.com/mike-gibson/mock-apollo-client.git","type":"git"},"_npmVersion":"10.5.0","description":"Library to help unit testing when using apollo-client","directories":{},"_nodeVersion":"20.12.2","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","graphql":"^15.8.0","ts-jest":"^29.1.2","typescript":"^5.4.5","@types/jest":"^29.5.12","@types/node":"^20.12.7","@apollo/client":"3.13"},"peerDependencies":{"@apollo/client":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mock-apollo-client_1.4.0_1760790999066_0.7655674141450384","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"mock-apollo-client","version":"2.0.0","keywords":["apollo-client","graphql","mock","test","testing"],"author":{"name":"mike-gibson"},"license":"MIT","_id":"mock-apollo-client@2.0.0","maintainers":[{"name":"mike-g","email":"mike-g-npm@outlook.com"}],"homepage":"https://github.com/mike-gibson/mock-apollo-client#readme","bugs":{"url":"https://github.com/mike-gibson/mock-apollo-client/issues"},"dist":{"shasum":"48b618906a43e61f2072cf38b279966065695bd8","tarball":"https://registry.npmjs.org/mock-apollo-client/-/mock-apollo-client-2.0.0.tgz","fileCount":13,"integrity":"sha512-29fqBd15f8WUvHK4ajJ/lLIc31VtBStuVgEhuPX0OTCSg6sqcFo/DXMyyBDoRmEFyT8cHtVj6b4xbd+CWvxNLw==","signatures":[{"sig":"MEUCIQDMVO2ZirzySXxoM2yGKDKGJT7PRChvk5sD13qzZmgBEAIgIKQ/Zkix4J7S5dFieidWjDEDKPnyFnDObSkMWoLYNFY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25507},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"d59bc0d069fa1fcf07e07ba23b4534d6406be79d","scripts":{"test":"jest","build":"rm -rf ./dist && tsc","deploy":"npm run test:suite && npm run build && npm publish","test:suite":"./runTestSuite.sh","test:watch":"jest --watch","prettier:check":"prettier . --check"},"_npmUser":{"name":"mike-g","email":"mike-g-npm@outlook.com"},"repository":{"url":"git+https://github.com/mike-gibson/mock-apollo-client.git","type":"git"},"_npmVersion":"10.9.3","description":"Library to help unit testing when using apollo-client","directories":{},"_nodeVersion":"22.20.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^30.2.0","rxjs":"^7.8.2","graphql":"^16.11.0","ts-jest":"^29.4.5","prettier":"^3.6.2","typescript":"^5.9.3","@types/jest":"^30.0.0","@types/node":"^22.18.11","@apollo/client":"^4.0.7"},"peerDependencies":{"@apollo/client":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mock-apollo-client_2.0.0_1762615916789_0.5812090298545607","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2019-03-03T21:03:35.324Z","modified":"2025-11-08T15:37:00.303Z","0.0.1":"2019-03-03T21:03:35.467Z","0.1.0":"2019-04-19T16:22:15.424Z","0.2.0":"2019-08-07T21:55:35.448Z","0.3.0":"2020-03-25T20:54:51.252Z","0.4.0":"2020-05-12T19:56:05.586Z","1.0.0":"2020-08-20T22:12:02.486Z","0.5.0":"2020-12-07T23:31:50.160Z","0.6.0-feature-fragments.0":"2021-03-28T00:08:34.442Z","0.6.0":"2021-04-01T16:48:55.040Z","1.1.0":"2021-04-10T17:05:39.206Z","0.7.0":"2021-04-27T17:56:13.470Z","1.2.0":"2021-08-10T11:12:04.602Z","1.2.1":"2022-08-13T12:33:45.423Z","1.3.0":"2024-04-10T21:13:48.956Z","1.3.1":"2024-04-11T20:14:19.016Z","1.4.0":"2025-10-18T12:36:39.268Z","2.0.0":"2025-11-08T15:31:57.005Z"},"bugs":{"url":"https://github.com/mike-gibson/mock-apollo-client/issues"},"author":{"name":"mike-gibson"},"license":"MIT","homepage":"https://github.com/mike-gibson/mock-apollo-client#readme","keywords":["apollo-client","graphql","mock","test","testing"],"repository":{"url":"git+https://github.com/mike-gibson/mock-apollo-client.git","type":"git"},"description":"Library to help unit testing when using apollo-client","maintainers":[{"name":"mike-g","email":"mike-g-npm@outlook.com"}],"readme":"# Mock Apollo Client\n\nHelps unit test components which use the Apollo Client.\n\n## Versions\n\n| Version | Compatibility                                                                                               |\n| ------- | ----------------------------------------------------------------------------------------------------------- |\n| 0.x     | Apollo client 2. README for 0.x [here](https://github.com/Mike-Gibson/mock-apollo-client/tree/release/0.x). |\n| 1.x     | Apollo client 3. README for 1.x [here](https://github.com/Mike-Gibson/mock-apollo-client/tree/release/1.x). |\n| 2.x     | Apollo client 4. (this README)                                                                              |\n\n## Motivation\n\nWhen using the `@apollo/client` library, I ran into issues trying to unit test React components which called GraphQL queries and mutations.\n\nThe Apollo client library includes a `MockedProvider` component which allows query and mutation results to be mocked, but didn't offer enough control within unit tests. The Apollo client documentation for testing can be found [here](https://www.apollographql.com/docs/react/development-testing/testing/).\n\nSpecifically, some of the issues I faced were:\n\n- Unable to assert queries/mutations were called with the expected variables\n- Unable to assert how many times a specific query was called\n- Unable to change the query/mutation result after the `MockedProvider` was initialised\n- Unable to easily control the query/mutation loading state\n\nThe `mock-apollo-client` library helps with the above issues, by allowing more control within unit tests.\n\n## Installation\n\n```bash\nnpm install --save-dev mock-apollo-client\n```\n\n## Usage\n\nThe examples below use `React`, `Jest` and `React Testing Library`, but `mock-apollo-client` is standalone and can used with any libraries and test frameworks.\n\nThe examples have been adapted from the official Apollo testing docs where possible.\n\n### Simple Query Example\n\nConsider the file below, which contains a single GraphQL query and a component which is responsible for rendering the result of the query:\n\n```jsx\n// dog.jsx\n\nimport { gql } from '@apollo/client';\nimport { useQuery } from '@apollo/client/react';\n\nexport const GET_DOG_QUERY = gql`\n  query getDog($name: String) {\n    dog(name: $name) {\n      id\n      name\n      breed\n    }\n  }\n`;\n\nexport const Dog = ({ name }) => {\n  const { loading, error, data } = useQuery(GET_DOG_QUERY, {\n    variables: { name },\n  });\n  if (loading) return <p>Loading...</p>;\n  if (error) return <p>{error.message}</p>;\n\n  return (\n    <p>\n      {data.dog.name} is a {data.dog.breed}\n    </p>\n  );\n};\n```\n\nTo unit test this component using `mock-apollo-client`, the test file could look like the following:\n\n```jsx\n// dog.test.jsx\nimport '@testing-library/jest-dom';\nimport { ApolloProvider } from '@apollo/client/react';\nimport { render, screen } from '@testing-library/react';\nimport { createMockClient } from 'mock-apollo-client';\n\nimport { GET_DOG_QUERY, Dog } from './dog';\n\nit('renders the dog name and breed', async () => {\n  const mockClient = createMockClient();\n\n  mockClient.setRequestHandler(GET_DOG_QUERY, () =>\n    Promise.resolve({\n      data: { dog: { id: 1, name: 'Rufus', breed: 'Poodle' } },\n    }),\n  );\n\n  render(\n    <ApolloProvider client={mockClient}>\n      <Dog name=\"Rufus\" />\n    </ApolloProvider>,\n  );\n\n  expect(await screen.findByText('Rufus is a Poodle')).toBeInTheDocument();\n});\n```\n\nThis test file does the following:\n\n1. Instantiates a new mock Apollo client\n1. Calls `setRequestHandler` on the mock Apollo client instance to set a function to be called when Apollo client executes the Dog query\n1. Passes the mock Apollo client instance to the ApolloProvider when rendering the component\n\n### Asserting query variables\n\nThe method `setRequestHandler` is passed a function to call when Apollo client executes a given query and it is called with the variables for that query, so it is easy to assert the component is behaving as expected using a spy library.\n\n```javascript\nconst queryHandler = jest.fn().mockResolvedValue({\n  data: { dog: { id: 1, name: 'Rufus', breed: 'Poodle' } },\n});\n\nmockApolloClient.setRequestHandler(GET_DOG_QUERY, queryHandler);\n\n// ....\n\nit('executes the query with the correct variables', () => {\n  expect(queryHandler).toHaveBeenCalledTimes(1);\n  expect(queryHandler).toHaveBeenCalledWith({ name: 'Rufus' });\n});\n```\n\n### Loading states\n\nA request handler returns a promise, so testing for loading state just requires that the promise returned is not resolved or rejected.\n\n### Error states\n\nTo simulate a network error, the request handler should return a rejected promise. i.e.\n\n```javascript\nmockApolloClient.setRequestHandler(GET_DOG_QUERY, () =>\n  Promise.reject(new Error('Network Error')),\n);\n```\n\nTo simulate GraphQL errors, the request handler should return a Promise which resolves with an `errors` field. i.e.\n\n```javascript\nmockApolloClient.setRequestHandler(GET_DOG_QUERY, () =>\n  Promise.resolve({ errors: [{ message: 'GraphQL Error' }] }),\n);\n```\n\n### Mutations\n\nMutations can be tested the same way that queries are, by using `setRequestHandler` and specifying a request handler for the mutation query.\n\n### Subscriptions\n\nSubscriptions can be tested, but require a different setup as they receive a stream of data.\nConsider the file below, which contains a single subscription and a component which is responsible for rendering the updated data:\n\n```jsx\n// dogSubscription.jsx\n\nimport { gql } from '@apollo/client';\nimport { useSubscription } from '@apollo/client/react';\n\nexport const DOG_SUBSCRIPTION = gql`\n  subscription subscribeDog($name: String) {\n    dog(name: $name) {\n      id\n      name\n      numberOfBarks\n    }\n  }\n`;\n\nexport const DogSubscription = ({ name }) => {\n  const { loading, error, data } = useSubscription(DOG_SUBSCRIPTION, {\n    variables: { name },\n  });\n  if (loading) return <p>Loading...</p>;\n  if (error) return <p>Error!</p>;\n\n  return (\n    <p>\n      {data.dog.name} has barked {data.dog.numberOfBarks} time(s)\n    </p>\n  );\n};\n```\n\nTo unit test this component using `mock-apollo-client`, the test file could look like the following:\n\n```jsx\n// dogSubscription.test.jsx\n\nimport '@testing-library/jest-dom';\nimport { act } from 'react';\nimport { ApolloProvider } from '@apollo/client/react';\nimport { render, screen } from '@testing-library/react';\nimport { createMockClient, createMockSubscription } from 'mock-apollo-client';\n\nimport { DOG_SUBSCRIPTION, DogSubscription } from './dogSubscription';\n\nit('renders the dog details', async () => {\n  const mockClient = createMockClient();\n  const mockSubscription = createMockSubscription();\n\n  mockClient.setRequestHandler(DOG_SUBSCRIPTION, () => mockSubscription);\n\n  render(\n    <ApolloProvider client={mockClient}>\n      <DogSubscription name=\"Rufus\" />\n    </ApolloProvider>,\n  );\n\n  act(() => {\n    mockSubscription.next({\n      data: { dog: { id: 1, name: 'Rufus', numberOfBarks: 0 } },\n    });\n  });\n\n  expect(\n    await screen.findByText('Rufus has barked 0 time(s)'),\n  ).toBeInTheDocument();\n\n  act(() => {\n    mockSubscription.next({\n      data: { dog: { id: 1, name: 'Rufus', numberOfBarks: 1 } },\n    });\n  });\n\n  expect(\n    await screen.findByText('Rufus has barked 1 time(s)'),\n  ).toBeInTheDocument();\n});\n```\n\nThe subscription can be closed by calling `.complete` if necessary for the test.\n\n#### Errors\n\nYou can also test error states by calling `.error` on the `mockSubscription` and passing errors as described in [Error States](#error-states):\n\n```javascript\nmockSubscription.error(new Error('Network Error'));\n```\n\n#### Multiple subscriptions\n\nA mock subscription will only be associated with a single invocation of a query. If a component is subscribing to the same query multiple times, then a separate mock subscription should be used for each one.\n\n```javascript\nconst subscriptions = [];\n\nmockClient.setRequestHandler(\n  SUBSCRIBE_DOG_DOCUMENT,\n  () => {\n    const subscription = createMockSubscription();\n    subscriptions.push(subscription);\n    return subscription;\n  });\n\n...\n\nsubscriptions.forEach((s) => s.next({ data: { dog: { id: 1, name: 'Rufus', numberOfBarks: 1 } } }));\n```\n\n### Specifying mock Apollo client options\n\n#### Apollo client options\n\nThe `createMockClient` method can be provided with the same constructor arguments that `ApolloClient` accepts which are used when instantiating the mock Apollo client.\n\nFor example, to specify the cache (and possible types for fragment matching) that should be used:\n\n```javascript\nconst cache = new InMemoryCache({\n  possibleTypes: myPossibleTypes,\n});\n\nconst mockClient = createMockClient({ cache });\n```\n\nNote: it is not possible to specify the `link` to use as this is how `mock-apollo-client` injects its request handling behaviour.\n\n#### Mock client options\n\nAdditionally, you can specify the following options which control the behaviour of the mock Apollo client:\n\n| Option                          | Description                                                                                         | Default                          |\n| ------------------------------- | --------------------------------------------------------------------------------------------------- | -------------------------------- |\n| `suppressMissingHandlerWarning` | Controls whether a warning is logged when a request handler for an executed operation is not found. | `false` (Warning will be logged) |\n\n### Fragments\n\nIf queries or mutations use fragments against union or interface types, you must inject a cache object when creating the mock client which has been provided with `possibleTypes`, and also include the correct `__typename` field when mocking the response.\n\nFor example:\n\n```javascript\nimport { InMemoryCache } from '@apollo/client';\nimport { createMockClient } from 'mock-apollo-client';\n\nconst cache = new InMemoryCache({\n  possibleTypes: {\n    Hardware: ['Memory', 'Cpu'],\n  },\n});\n\nconst mockClient = createMockClient({ cache });\n```\n\nYou must then ensure that the query result includes the `__typename` field as it would when calling your actual GraphQL API. This is to ensure that the fragment matching works as expected:\n\n```typescript\nconst query = gql`\n  query Hardware {\n    hardware {\n      id\n      ... on Memory {\n        size\n      }\n      ... on Cpu {\n        speed\n      }\n    }\n  }\n`;\n\nconst mockData = {\n  hardware: {\n    __typename: 'Memory',\n    id: 2,\n    size: '16gb',\n  },\n};\n\nconst requestHandler = jest.fn().mockResolvedValue({ data: mockData });\n```\n\n### Removing a handler\n\nIt's possible to remove a previously registered handler for a query using `removeRequestHandler`.\n\nFor example:\n\n```javascript\nmockApolloClient.removeRequestHandler(GET_DOG_QUERY);\n```\n","readmeFilename":"README.md"}