{"id":26210791,"url":"https://github.com/dkaoster/fuzzy-testing","last_synced_at":"2025-06-24T04:31:36.627Z","repository":{"id":38819259,"uuid":"98225723","full_name":"dkaoster/fuzzy-testing","owner":"dkaoster","description":"Tools for fuzz testing node applications","archived":false,"fork":false,"pushed_at":"2024-06-18T01:15:53.000Z","size":625,"stargazers_count":6,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-22T02:16:32.274Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dkaoster.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-24T19:10:33.000Z","updated_at":"2023-03-19T17:44:38.000Z","dependencies_parsed_at":"2025-03-12T07:44:26.471Z","dependency_job_id":null,"html_url":"https://github.com/dkaoster/fuzzy-testing","commit_stats":null,"previous_names":["dkaoster/fuzzy"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/dkaoster/fuzzy-testing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkaoster%2Ffuzzy-testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkaoster%2Ffuzzy-testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkaoster%2Ffuzzy-testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkaoster%2Ffuzzy-testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dkaoster","download_url":"https://codeload.github.com/dkaoster/fuzzy-testing/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkaoster%2Ffuzzy-testing/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261604082,"owners_count":23183592,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-12T07:34:16.694Z","updated_at":"2025-06-24T04:31:36.587Z","avatar_url":"https://github.com/dkaoster.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fuzzy-Testing\n\nFuzz testing tools for node.\n\nBecause javascript is a loosely typed language, it is difficult to prepare for all the different possible types that a function might receive. In order to better build stable javascript applications, fuzzy-testing is a tool that will try many possible combinations of data types within arguments.\n\nTo install to your local project, simply run:\n\n```\nnpm install fuzzy-testing\n```\n\nthen, call one of the fuzzFunctions from within your testing code. If you're using jest, you can do something like this:\n\n```js\nimport { fuzzFunction } from 'fuzzy-testing';\n\nexpect(fuzzFunction(onlyBools, { maxArgs: 1 })).toEqual([]);\n```\n\n## fuzzFunction\n\n`fuzzFunction` is a function that takes a function and an object specifying it's options.\n\n#### options\n\n- returnTypes: can be an array of types represented by strings, or a function that validates.\n- returnFirstError: boolean that does short circuit evaluation if true.\n- maxArgs: the maximum number of arguments to send to the function.\n- minArgs: the minimum number of arguments to send to the function.\n- argumentTypes: an array of argument types.\n- argumentValues: an array of values that will be tested.\n- iterations: the number of times that a function will be run per argument combination.\n- canThrowError: whether or not the function can throw an error or not.\n\n## fuzzReactComponent\n\nFuzzy testing also allows you to fuzz the render method of react component via `fuzzReactComponent`.\n\n#### options\n\n- returnTypes: can be an array of types represented by strings, or a function that validates.\n- returnFirstError: boolean that does short circuit evaluation if true.\n- argumentValues: an array of values that will be tested.\n- iterations: the number of times that a function will be run per argument combination.\n- canThrowError: whether or not the function can throw an error or not.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkaoster%2Ffuzzy-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdkaoster%2Ffuzzy-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkaoster%2Ffuzzy-testing/lists"}