{"id":22357669,"url":"https://github.com/bluzi/jest-retries","last_synced_at":"2025-07-30T10:33:21.656Z","repository":{"id":57280460,"uuid":"191649814","full_name":"bluzi/jest-retries","owner":"bluzi","description":"🚀 Automatically retry flaky tests with Jest ","archived":false,"fork":false,"pushed_at":"2019-06-12T21:59:12.000Z","size":2,"stargazers_count":10,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-29T23:27:00.878Z","etag":null,"topics":["jest","retry","tests"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bluzi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-12T21:52:34.000Z","updated_at":"2022-12-21T14:04:13.000Z","dependencies_parsed_at":"2022-09-19T17:01:28.725Z","dependency_job_id":null,"html_url":"https://github.com/bluzi/jest-retries","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluzi%2Fjest-retries","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluzi%2Fjest-retries/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluzi%2Fjest-retries/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluzi%2Fjest-retries/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bluzi","download_url":"https://codeload.github.com/bluzi/jest-retries/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228124559,"owners_count":17873170,"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":["jest","retry","tests"],"created_at":"2024-12-04T14:15:43.937Z","updated_at":"2024-12-04T14:15:44.425Z","avatar_url":"https://github.com/bluzi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## jest-retries\nTired of manually re-running your CI when flaky tests fail? Puppeteer fails sporadically? Envy your friends because they use jest-circus? No more!\n\n### What should I do?\n```\nnpm i -D jest-retries\n```\n\n```js\nconst retry = require('jest-retries');\n\nretry('Do flaky work', 5, () =\u003e {\n    expect(irregularFunction()).toBe('sporadic');\n});\n```\n\nThat's it! \n\nNo configurations, no arguments, just require *jest-retries* and use it instead of `test()`.\n\n### Can I completely replace test with jest-retries?\nYou sure can!\n\n```js\nconst test = require('jest-retries');\n\nfunction getRandomInt(min, max) {\n    min = Math.ceil(min);\n    max = Math.floor(max);\n    return Math.floor(Math.random() * (max - min)) + min;\n  }\n\ntest('Random value should eventually resolve to 1', 100, () =\u003e {\n    expect(getRandomInt(0, 2)).toBe(1);\n});\n```\n\n### Contributions\nPlesae feel free to ask for features by [creating issues](https://github.com/bluzi/jest-retries/issues), or to implement features by [creating pull requests](https://github.com/bluzi/jest-retries/pulls).\nI'll do my best to review things as fast as I can, as I always try to do.\n\nIf you find any errors or strange behaviors, please report them by [creating an issue](https://github.com/bluzi/jest-retries/issues).\n\n### License\nThis project is licensed under the MIT License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluzi%2Fjest-retries","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbluzi%2Fjest-retries","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluzi%2Fjest-retries/lists"}