{"id":16049750,"url":"https://github.com/dcalhoun/rntl-reproduction-cases","last_synced_at":"2026-05-15T04:36:34.594Z","repository":{"id":145719570,"uuid":"444884380","full_name":"dcalhoun/rntl-reproduction-cases","owner":"dcalhoun","description":"Reproduction cases for @testing-library/react-native.","archived":false,"fork":false,"pushed_at":"2022-01-06T15:32:38.000Z","size":176,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-25T05:44:15.689Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"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/dcalhoun.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-05T17:03:01.000Z","updated_at":"2023-03-08T15:21:53.000Z","dependencies_parsed_at":"2023-04-25T01:33:07.700Z","dependency_job_id":null,"html_url":"https://github.com/dcalhoun/rntl-reproduction-cases","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dcalhoun/rntl-reproduction-cases","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcalhoun%2Frntl-reproduction-cases","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcalhoun%2Frntl-reproduction-cases/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcalhoun%2Frntl-reproduction-cases/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcalhoun%2Frntl-reproduction-cases/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcalhoun","download_url":"https://codeload.github.com/dcalhoun/rntl-reproduction-cases/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcalhoun%2Frntl-reproduction-cases/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33054015,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-15T02:00:06.351Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2024-10-09T00:26:47.900Z","updated_at":"2026-05-15T04:36:34.572Z","avatar_url":"https://github.com/dcalhoun.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RNTL jsdom Fake Timers\n\nThis is a reproduction of an timeout error that occurs while using `@testing-library/react-native` and combining `testEnvironment: 'jsdom'` and fake timers, regardless of \"legacy\" or \"modern\" timers. The result is the following error. It would appear that `setImmediate` does not perform as expected, breaking the built-in [`cleanup` functionality](https://github.com/callstack/react-native-testing-library/blob/c42bae123d69375e27b94ff0329380a13e31e87b/src/index.js#L13) of `@testing-library/react-native`.\n\n\u003cdetails\u003e\u003csummary\u003eError Details\u003c/summary\u003e\n\n```\n\u003e rntl-jsdom-fake-timers@0.0.1 test\n\u003e jest\n\n PASS  ./node-real-timers.test.js\n PASS  ./node-fake-timers.test.js\n PASS  ./jsdom-real-timers.test.js\n FAIL  ./jsdom-fake-timers.test.js (5.829 s)\n  ● jsdom test environment with fake timers › does not timeout\n\n    thrown: \"Exceeded timeout of 5000 ms for a hook.\n    Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test.\"\n\n      3 |  */\n      4 |\n    \u003e 5 | import \"@testing-library/react-native\";\n        | ^\n      6 |\n      7 | beforeEach(() =\u003e {\n      8 |   jest.useFakeTimers();\n\n      at Object.\u003canonymous\u003e (node_modules/@testing-library/react-native/build/index.js:29:3)\n      at Object.\u003canonymous\u003e (jsdom-fake-timers.test.js:5:1)\n\nTest Suites: 1 failed, 3 passed, 4 total\nTests:       1 failed, 3 passed, 4 total\nSnapshots:   0 total\nTime:        6.732 s\nRan all test suites.\n```\n\n\u003c/details\u003e\n\n## Project Setup\n\n1. `npm install`\n1. `npm run test`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcalhoun%2Frntl-reproduction-cases","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcalhoun%2Frntl-reproduction-cases","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcalhoun%2Frntl-reproduction-cases/lists"}