{"id":18996977,"url":"https://github.com/rburgst/fastify-jest-timers","last_synced_at":"2026-06-19T12:32:32.621Z","repository":{"id":145057091,"uuid":"426196963","full_name":"rburgst/fastify-jest-timers","owner":"rburgst","description":"bug repo showing a fastify problem with jest fakeTimers","archived":false,"fork":false,"pushed_at":"2021-11-20T18:02:23.000Z","size":131,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-21T12:27:03.250Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rburgst.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":"2021-11-09T11:09:08.000Z","updated_at":"2021-11-20T18:02:26.000Z","dependencies_parsed_at":"2023-06-03T06:30:47.458Z","dependency_job_id":null,"html_url":"https://github.com/rburgst/fastify-jest-timers","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rburgst/fastify-jest-timers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rburgst%2Ffastify-jest-timers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rburgst%2Ffastify-jest-timers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rburgst%2Ffastify-jest-timers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rburgst%2Ffastify-jest-timers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rburgst","download_url":"https://codeload.github.com/rburgst/fastify-jest-timers/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rburgst%2Ffastify-jest-timers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34532253,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"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-11-08T17:37:46.230Z","updated_at":"2026-06-19T12:32:32.596Z","avatar_url":"https://github.com/rburgst.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fastify Hangs with Jest Sample repo\n\nSample repo demostrating a problem with fastify and using `jest.useFakeTimers` causing a hang.\n\nTo replicate:\n\n* `npm install`\n* `npm run test`\n\n=\u003e test hangs and fails with timeout.\n\nComment out \n\n```javascript\n// test/routes/root.test.js\n\n    // jest\n    //   .useFakeTimers(\"modern\")\n    //   .setSystemTime(new Date(\"2020-02-08T20:10:21.520Z\"));\n```\n\nto make it work.\n\nSee https://github.com/facebook/jest/issues/12056","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frburgst%2Ffastify-jest-timers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frburgst%2Ffastify-jest-timers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frburgst%2Ffastify-jest-timers/lists"}