{"_id":"@drewschrauf/bs-react-hooks-testing-library","_rev":"2-cb5c703ef6ae3237f495ca68286e8f8e","name":"@drewschrauf/bs-react-hooks-testing-library","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@drewschrauf/bs-react-hooks-testing-library","version":"0.1.0","license":"MIT","scripts":{"build":"bsb -clean-world -make-world","watch":"bsb -make-world -w","pretest":"yarn build","test":"jest"},"keywords":["reason","bucklescript","jest","react","hooks"],"dependencies":{"@testing-library/react-hooks":"^3.2.1","react-test-renderer":"^16.13.1"},"devDependencies":{"@glennsl/bs-jest":"^0.5.1","bs-platform":"^7.2.2","react-test-renderer":"^16.13.1","reason-react":"^0.7.1"},"peerDependencies":{"reason-react":">= 0.7.0"},"publishConfig":{"access":"public"},"gitHead":"da3fa441229e5153daf93e507ab38bd84904540d","description":"[@testing-library/react-hooks-testing-library](https://github.com/testing-library/react-hooks-testing-library) Reason/BuckleScript bindings.","_id":"@drewschrauf/bs-react-hooks-testing-library@0.1.0","_nodeVersion":"12.13.1","_npmVersion":"lerna/3.20.2/node@v12.13.1+x64 (linux)","_npmUser":{"name":"drewschrauf","email":"andrew.schrauf@gmail.com"},"dist":{"integrity":"sha512-YYjlShoN/PnddCAcBcTMf85GGu00Fab6LaFR+5vc8Yq6g5WAiJtg44zPl2uJiaMbifjtRmf+Imb2mjtbX652zA==","shasum":"4d7761a32ee491b9a566fec227a55b080f0ea5be","tarball":"https://registry.npmjs.org/@drewschrauf/bs-react-hooks-testing-library/-/bs-react-hooks-testing-library-0.1.0.tgz","fileCount":6,"unpackedSize":7556,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJes+uFCRA9TVsSAnZWagAAdXYP/2sHQzgujPgJJp0gAbtD\nQ4AB5PVUqy8NHpG5aHve6pNFl8yZ0dETPHWUPkUwpAXU94Ls/W/G6YOGL+wI\n2yWOsJej1gXn9tsQWmZKcEf38Ni+WWLiLkIJ94UQneHYmYHQch5hRODtNMam\nsQiYyQS6q6aItH5WoazljrQHLm0aTbGnKuPataWi8xPm1uUMg7hoonQJs11T\nrnEx9iQgA+r1bHlIN24aIACnQBdBEfiL8AaVyERLKFg4cqiDYOWoyx1ACyVC\nQLx8XgtsJXumzeFXDL+PA7pSVPkejpEyLfQllsnR6miQQD3xTew6DvWq6Xmf\nHBaUU2v0gknOMpU4po60PEdRnGaO/xvc+A9y+vmNQ5GbIhhN3Byey9uHnpMb\nU18wIts5ie0fw1wGgOvF8K/Vp2ykqDbbAs7dw63C2tSs841doxnS+NLXEcW9\nF0h/omz79G74kgoAl5OKCSaHO5nhclA7CLPz/1C7l70jwI8H6lWwBlYKovvv\nZbOysRlweHVLWSQhU9C8dWX8QmFg1tfGRRjXQCrYo9Hna4ROZX/tunbegjVc\nXA8idJ+kbgT8JgbbVuR2TiUS7Lk23fYjUdETCCWjHqV81PrLeY0Lw4OthHAI\nlwuQzZKGDgSF8PFxZktfoq6Lnu3bSYiL7LRDcw8usb0kmP9uNh1WTdzIvbKe\nyd3R\r\n=6K0y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDEETtWDU/vosdvaBYfwnkASqgjBayl79duB3sN3Yp1mAiAYzyVW1Q2k8WiFWJ8EoZY0e4axX9I49Fzi3OoGVE6bgw=="}]},"maintainers":[{"name":"drewschrauf","email":"andrew.schrauf@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bs-react-hooks-testing-library_0.1.0_1588849541206_0.7851597748856884"},"_hasShrinkwrap":false},"0.1.1":{"name":"@drewschrauf/bs-react-hooks-testing-library","version":"0.1.1","license":"MIT","scripts":{"build":"bsb -make-world","pretest":"yarn build","test":"jest"},"keywords":["reason","bucklescript","jest","react","hooks"],"dependencies":{"@testing-library/react-hooks":"^3.2.1","react-test-renderer":"^16.13.1"},"devDependencies":{"@glennsl/bs-jest":"^0.5.1","bs-platform":"^7.2.2","react-test-renderer":"^16.13.1","reason-react":"^0.7.1"},"peerDependencies":{"reason-react":">= 0.7.0"},"publishConfig":{"access":"public"},"gitHead":"6d29a951a5e439eab42585a1e2fa51fd903c7be6","description":"[@testing-library/react-hooks-testing-library](https://github.com/testing-library/react-hooks-testing-library) Reason/BuckleScript bindings.","_id":"@drewschrauf/bs-react-hooks-testing-library@0.1.1","_nodeVersion":"12.13.1","_npmVersion":"lerna/3.20.2/node@v12.13.1+x64 (linux)","_npmUser":{"name":"drewschrauf","email":"andrew.schrauf@gmail.com"},"dist":{"integrity":"sha512-TxyoeAapzHJNmSEYYOrC/34TdOqikG83RHL+nCReBm1gMPWzXh4dGMEuDfeUecVmpxMqffikmRe+beIaiPv6SA==","shasum":"e3bbc28318aeb86c72dff6dc28dc1a18ece61817","tarball":"https://registry.npmjs.org/@drewschrauf/bs-react-hooks-testing-library/-/bs-react-hooks-testing-library-0.1.1.tgz","fileCount":6,"unpackedSize":7508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJewlW5CRA9TVsSAnZWagAAXG4P/iKCHcRdwpRrO2lpRiPg\nVg651CXctKg+5ZOkPTyLV809ooYY4feHSzzKp1u1NjRsQJgQ+GHGZ3s5iZTn\nyr65A2XQ7LV6AXZvfT70yaJZl3UFjga2WBTwp2u1vhCMfC1ZUXWPwddp+uRs\nkt4svG+XRgmkkpiT4QGm88LJ25MiyesGqVZunYy3HYU6w5FNfV4wKcejw+rt\nBiqdjGV5Eiqc9LKEPU4FmQda7ZTDQZ6sJ5loZS2TcPyqzqAReJzCweRbaqLY\nKWV9qm/OIkvf9abjyrHH+o+/+0XI+5q46mOV2qcSYoFuonvvJU5/ZOXbcopW\njwZPYwtCFe0fVcztKwtwDyiZZ3Brqog5NiSl3QdO4rRe/WeVZuORBbCqADOy\nvnkrapeWpdfCeyaTn8ju83xyKbIwjq6Xgnv8Bbg5e/qBPN4RCEOLA/e3yWGt\nKrJhPyYmuula5RfZkZox90MwMef0jrRfj451z9D9js6ya8kg7KeCAWtZlWwr\nZfEavGHDG8dn+k6X8K+98o/opnXzX8BfuQ+zBhpeKt9QGn3nd2CUjAsjP3gd\n+OIkOsXsnkn9qzdFwvGId6gcxAn56zRlh2N8MabhGCgT1F1UcNcET3C9luRQ\nCsq9oehEAXnZ/mfvSQOU1GieOjjcfc6zfHzzJwb97xwfsDZ9oRW9h9gvMZrg\nmDft\r\n=RCFj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDXud+sWHnFTkNYOvD+0RwuN17DaMNaLIi+Weyhthh7sAiAa5PpXycxgQCYOrT2OXrdnOKRQkNzKaiDHXsqbV4F2fA=="}]},"maintainers":[{"name":"drewschrauf","email":"andrew.schrauf@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bs-react-hooks-testing-library_0.1.1_1589794233342_0.5661321919451963"},"_hasShrinkwrap":false}},"time":{"created":"2020-05-07T11:05:41.156Z","0.1.0":"2020-05-07T11:05:41.314Z","modified":"2022-04-05T05:38:45.435Z","0.1.1":"2020-05-18T09:30:33.502Z"},"maintainers":[{"name":"drewschrauf","email":"andrew.schrauf@gmail.com"}],"description":"[@testing-library/react-hooks-testing-library](https://github.com/testing-library/react-hooks-testing-library) Reason/BuckleScript bindings.","keywords":["reason","bucklescript","jest","react","hooks"],"license":"MIT","readme":"# @drewschrauf/bs-react-hooks-testing-library\n\n[@testing-library/react-hooks-testing-library](https://github.com/testing-library/react-hooks-testing-library) Reason/BuckleScript bindings.\n\n## Installation\n\nInstall as a dev dependency:\n\n```sh\nnpm install --save-dev @drewschrauf/bs-react-hooks-testing-library\n```\n\nAdd it to your bsconfig.json as a dev dependency.\n\n```json\n{\n  ...\n  \"bs-dev-dependencies\": [\n    ...\n    \"@drewschrauf/bs-react-hooks-testing-library\"\n  ]\n}\n```\n\nIt's recommended to add `open ReactHooksTestingLibrary` at the top of each test file.\n\n## API\n\nThis documentation covers the specifics of these bindings. To learn about the principles and approach behind Testing Library, refer to the [official documentation](https://testing-library.com/).\n\nAll methods from [@testing-library/react-hooks-testing-library](https://github.com/testing-library/react-hooks-testing-library) are implemented. Values that are returned from `renderHook` in the original JavaScript version have getter methods equivalents in there bindings. For example, the JavaScript method to retrieve a hooks current value is:\n\n```javascript\nconst { result } = renderHook(() => React.useState(1));\nconsole.log(result.current) // logs \"1\"\n```\n\nThe equalivent in these bindings is the `current` method:\n\n```reason\nconst result = renderHook(() => React.useState(_ => 1));\nJs.log(result |> current) // logs \"1\"\n```\n\nReview the [interface file](https://github.com/drewschrauf/bs-testing-library/blob/mastery/packages/bs-react-hooks-testing-library/src/ReactHooksTestingLibrary.rei) for the full API. [Example tests](https://github.com/drewschrauf/bs-testing-library/blob/master/packages/bs-react-hooks-testing-library/__tests__/ReactHooksTestingLibrary_Example_test.re) are also available.","readmeFilename":"README.md"}