{"_id":"@djaler/jest-fast-check","_rev":"1-1a6b72c74284b94f3b70de4c6be6f3d1","name":"@djaler/jest-fast-check","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@djaler/jest-fast-check","version":"0.0.1","description":"🚧 Property based testing for Jest based on fast-check","main":"lib/jest-fast-check.js","types":"lib/jest-fast-check.d.ts","scripts":{"build":"tsc","jest-test":"jest","test":"sh test.sh","format:check":"prettier --list-different \"**/*.{js,ts}\"","format":"prettier --write \"**/*.{js,ts}\""},"repository":{"type":"git","url":"git+https://github.com/dubzzz/jest-fast-check.git"},"author":{"name":"Nicolas DUBIEN","email":"github@dubien.org"},"license":"MIT","bugs":{"url":"https://github.com/dubzzz/jest-fast-check/issues"},"homepage":"https://github.com/dubzzz/jest-fast-check#readme","peerDependencies":{"fast-check":"^1.0.0","jest":">=25.1.0"},"dependencies":{},"devDependencies":{"@types/jest":"^25.1.3","@types/node":"^13.7.6","fast-check":"^1.22.2","jest":"^25.1.0","prettier":"^1.19.1","ts-jest":"^25.2.1","ts-node":"^8.6.2","typescript":"^3.8.2"},"keywords":["jest","generative","property-based testing","testing","quickcheck","fast-check"],"jest":{"moduleFileExtensions":["ts","js"],"globals":{"ts-jest":{"tsConfig":"tsconfig.json"}},"transform":{"^.+\\.ts$":"ts-jest"},"testMatch":["**/*.spec.ts"]},"gitHead":"df21370724d436a0ecdec71ee1ebc2a2882ecdbb","_id":"@djaler/jest-fast-check@0.0.1","_nodeVersion":"12.18.2","_npmVersion":"6.14.5","dist":{"integrity":"sha512-e0zQ9yN2Ts9cCmbiCqkA13Qc8PPmhs5h5iP/9x1enHyhcGCULRdZH81oAlspVf5lKHhxCrrsOcpvvtppil1YAg==","shasum":"517f65b515f183252a3fbaf5982fef7eee9744e5","tarball":"https://registry.npmjs.org/@djaler/jest-fast-check/-/jest-fast-check-0.0.1.tgz","fileCount":5,"unpackedSize":11292,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDLjtCRA9TVsSAnZWagAAc44QAISnTzu5F1ezXV3RbRgE\n46a+izchfQr9vrMtLtSbNnbsaVwcmCX3Qym66LwMFmPnGeWIwWpClxr5pO5c\nz26hQa9qgK3nzz805FmV0zap5YU9TNFn7S+2HEIBomj+ttygpewQ+GtyfpWL\nFbdyOHqctJQcBGU0j2w5i38nB/RgNmMuBxRTUh/xFZjtSsc1zOHqRaP6eLZ/\nKIJofdWcAlYIysElJfqiw0D0P9ZdfFI4X+HfgQrZAY5/WJUiFrYGThXnZ4dy\nwXsWxpxtUh6XMF/qqsSsF4GBfnYQiNTj0f+IpsbtAe3+ULf3L7Dpd73JDN4/\nsd0FN1YT1/0oT4DkX3Vp17Qh5n8mHu0LdawiIYNA+/o3XKaqf2F1b6h8qlRH\nWlI/sP0iD3/qRoDbmuQdRnMUN3jI1Isdxj9ZI48xXPmmYPbMVSB0x72mqnNk\npk1Af/l6MVsKv/sHWtp3wlz0dQYQ2lDwWx66IyYJ1dFNL5s6kMDv2irIyrz1\n/Ub0C8Mh4VEUkiEqivg/tkV7J1TUvVzPn8lD1m63GM6NKEclqWCPVYGoavsy\n8WP1bs7kHmRcenbD+LnQhgkzTPA+f/x0XEtJc/hN5VPQhX9yw1Kuk9KWzFvr\n3pyyCj/tp4G4yf7tZM9dKIA9e1pjMo7xlbCmt3yD5PMyd+NkwztRSPaOLTrT\nmSCJ\r\n=GVU0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD44TNtrU688q0W0T++oiZeTeGeZqjMGVB1BYjwhaUoJwIgJTpjWcRtgotA72gBDFBJlC+IgRq944GgT3pOz0BHS7M="}]},"maintainers":[{"name":"djaler","email":"djaler1@gmail.com"}],"_npmUser":{"name":"djaler","email":"djaler1@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jest-fast-check_0.0.1_1594669293010_0.1822696788973528"},"_hasShrinkwrap":false}},"time":{"created":"2020-07-13T19:41:32.862Z","0.0.1":"2020-07-13T19:41:33.105Z","modified":"2022-04-05T04:49:57.895Z"},"maintainers":[{"name":"djaler","email":"djaler1@gmail.com"}],"description":"🚧 Property based testing for Jest based on fast-check","homepage":"https://github.com/dubzzz/jest-fast-check#readme","keywords":["jest","generative","property-based testing","testing","quickcheck","fast-check"],"repository":{"type":"git","url":"git+https://github.com/dubzzz/jest-fast-check.git"},"author":{"name":"Nicolas DUBIEN","email":"github@dubien.org"},"bugs":{"url":"https://github.com/dubzzz/jest-fast-check/issues"},"license":"MIT","readme":"# Property based testing for Jest based on [fast-check](https://github.com/dubzzz/fast-check/)\n\n[![Build Status](https://travis-ci.com/dubzzz/jest-fast-check.svg?branch=master)](https://travis-ci.com/dubzzz/jest-fast-check)\n[![npm version](https://badge.fury.io/js/jest-fast-check.svg)](https://badge.fury.io/js/jest-fast-check)\n\nBring the power of property based testing framework fast-check into jest.\n`jest-fast-check` simplifies the integration of fast-check into jest testing framework.\n\n## Getting started\n\nInstall `jest-fast-check` and its peer dependencies:\n\n```bash\n# With yarn\nyarn add -D jest fast-check jest-fast-check\n\n# With npm\nnpm install --save-dev jest fast-check jest-fast-check\n```\n\n## Example\n\n```javascript\nimport { testProp, fc } from \"jest-fast-check\";\n\n// for all a, b, c strings\n// b is a substring of a + b + c\ntestProp(\n  \"should detect the substring\",\n  [fc.string(), fc.string(), fc.string()],\n  (a, b, c) => {\n    return (a + b + c).includes(b);\n  }\n);\n```\n\nPlease note that the properties accepted by `jest-fast-check` as input can either be synchronous or asynchronous (even just `PromiseLike` instances).\n\n## Advanced\n\nIf you want to forward custom parameters to fast-check, `testProp` accepts an optional `fc.Parameters` ([more](https://github.com/dubzzz/fast-check/blob/master/documentation/1-Guides/Runners.md#runners)).\n\n`jest-fast-check` also comes with `.only`, `.skip` and `.todo` from jest.\n\n```javascript\nimport { itProp, testProp, fc } from \"jest-fast-check\";\n\ntestProp(\n  \"should replay the test for the seed 4242\",\n  [fc.nat(), fc.nat()],\n  (a, b) => {\n    return a + b === b + a;\n  },\n  { seed: 4242 }\n);\n\ntestProp.skip(\"should be skipped\", [fc.fullUnicodeString()], (text) => {\n  return text.length === [...text].length;\n});\n\ndescribe(\"with it\", () => {\n  itProp(\"should run too\", [fc.nat(), fc.nat()], (a, b) => {\n    return a + b === b + a;\n  });\n});\n```\n\n## Minimal requirements\n\n- `jest >=25.1.0`\n- `fast-check ^1.0.0`\n- `typescript >=3.9.0`\n","readmeFilename":"README.md"}