{"adoption": {"forks": 230, "observed_at": "2026-08-28T04:09:13.810412+00:00", "stars": 5259}, "canonical_url": "https://ross.abutalabs.com/products/react-hooks-testing-library", "card": {"archived": false, "artifact_type": "library", "description": "🐏 Simple and complete React hooks testing utilities that encourage good testing practices.", "domain": ["testing", "frontend", "web-development", "developer-tools"], "enriched": true, "function": ["testing", "mocking"], "health_score": 20, "homepage": "https://react-hooks-testing-library.com", "language": "TypeScript", "license": "MIT", "license_family": "permissive", "maturity": "maintenance", "member_repos": ["testing-library/react-hooks-testing-library"], "name": "testing-library/react-hooks-testing-library", "platform": [], "pushed_at": "2024-01-30T20:25:46+00:00", "repo": "testing-library/react-hooks-testing-library", "stars": 5259, "tags": ["react", "react-hooks", "testing-library", "unit-testing", "custom-hooks", "jest", "deprecated", "nodejs", "javascript", "web-server"], "topics": ["reactjs", "testing", "react-hooks", "javascript", "testing-library"], "urls": [], "use_cases": ["test custom react hooks without writing wrapper components", "unit test a react hook that manages complex state logic", "test a hook library that isn't tied to a specific component", "assert hook return values and rerender with new inputs", "test hooks that use effects, context, or async updates"], "what_it_is": "A Testing Library utility for testing React custom hooks by rendering them inside a test harness function component, with utilities like renderHook for updating inputs and asserting outputs. It supports react-test-renderer and react-dom renderers and is distributed as @testing-library/react-hooks.", "when_to_avoid": ["you're on React 18+, where renderHook is built into @testing-library/react", "your hook is only used by one component and is easy to test via that component", "you want an actively developed tool - this library is deprecated"], "when_to_choose": ["you're publishing a library of standalone custom hooks", "your hook is complex and hard to exercise through component tests", "you're on React 16.9–17 and need a dedicated hook test harness"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/react-hooks-testing-library", "repo": "testing-library/react-hooks-testing-library", "role": "main", "score": 23}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:09:13.810412+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-29T17:59:31.250401+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a0850dc4365774272763fecef574a5f669877ea2ee7b0b8921ffeb4e8248fe3b", "fetched_at": "2026-08-28T04:09:13.810412+00:00", "kind": "readme", "missing": false, "url": "https://github.com/testing-library/react-hooks-testing-library"}, {"content_hash": "bc674183ff8078fb6ae63e6cdfe17d83cd095b842d9cc3d5a69db81262259f4a", "fetched_at": "2026-08-29T08:54:54.139557+00:00", "kind": "homepage", "missing": false, "url": "https://react-hooks-testing-library.com"}, {"content_hash": "a105372e8c46a8caaabb8c899b82239427f32b20d391936541e274fa2f8c78a0", "fetched_at": "2026-08-29T08:54:54.148396+00:00", "kind": "site_page", "missing": false, "url": "https://react-hooks-testing-library.com/installation"}, {"content_hash": "0ae17dd723945bf7b64516035f91faebd413548f013ef5757e7236095c1cceca", "fetched_at": "2026-08-29T08:54:54.150546+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/react-hooks-testing-library"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:09:13.810412+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-29T17:59:31.250401+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a0850dc4365774272763fecef574a5f669877ea2ee7b0b8921ffeb4e8248fe3b", "fetched_at": "2026-08-28T04:09:13.810412+00:00", "kind": "readme", "missing": false, "url": "https://github.com/testing-library/react-hooks-testing-library"}, {"content_hash": "bc674183ff8078fb6ae63e6cdfe17d83cd095b842d9cc3d5a69db81262259f4a", "fetched_at": "2026-08-29T08:54:54.139557+00:00", "kind": "homepage", "missing": false, "url": "https://react-hooks-testing-library.com"}, {"content_hash": "a105372e8c46a8caaabb8c899b82239427f32b20d391936541e274fa2f8c78a0", "fetched_at": "2026-08-29T08:54:54.148396+00:00", "kind": "site_page", "missing": false, "url": "https://react-hooks-testing-library.com/installation"}, {"content_hash": "0ae17dd723945bf7b64516035f91faebd413548f013ef5757e7236095c1cceca", "fetched_at": "2026-08-29T08:54:54.150546+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/react-hooks-testing-library"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-29T17:59:31.250401+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a0850dc4365774272763fecef574a5f669877ea2ee7b0b8921ffeb4e8248fe3b", "fetched_at": "2026-08-28T04:09:13.810412+00:00", "kind": "readme", "missing": false, "url": "https://github.com/testing-library/react-hooks-testing-library"}, {"content_hash": "bc674183ff8078fb6ae63e6cdfe17d83cd095b842d9cc3d5a69db81262259f4a", "fetched_at": "2026-08-29T08:54:54.139557+00:00", "kind": "homepage", "missing": false, "url": "https://react-hooks-testing-library.com"}, {"content_hash": "a105372e8c46a8caaabb8c899b82239427f32b20d391936541e274fa2f8c78a0", "fetched_at": "2026-08-29T08:54:54.148396+00:00", "kind": "site_page", "missing": false, "url": "https://react-hooks-testing-library.com/installation"}, {"content_hash": "0ae17dd723945bf7b64516035f91faebd413548f013ef5757e7236095c1cceca", "fetched_at": "2026-08-29T08:54:54.150546+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/react-hooks-testing-library"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:09:13.810412+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:09:13.810412+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:09:13.810412+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-29T17:59:31.250401+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a0850dc4365774272763fecef574a5f669877ea2ee7b0b8921ffeb4e8248fe3b", "fetched_at": "2026-08-28T04:09:13.810412+00:00", "kind": "readme", "missing": false, "url": "https://github.com/testing-library/react-hooks-testing-library"}, {"content_hash": "bc674183ff8078fb6ae63e6cdfe17d83cd095b842d9cc3d5a69db81262259f4a", "fetched_at": "2026-08-29T08:54:54.139557+00:00", "kind": "homepage", "missing": false, "url": "https://react-hooks-testing-library.com"}, {"content_hash": "a105372e8c46a8caaabb8c899b82239427f32b20d391936541e274fa2f8c78a0", "fetched_at": "2026-08-29T08:54:54.148396+00:00", "kind": "site_page", "missing": false, "url": "https://react-hooks-testing-library.com/installation"}, {"content_hash": "0ae17dd723945bf7b64516035f91faebd413548f013ef5757e7236095c1cceca", "fetched_at": "2026-08-29T08:54:54.150546+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/react-hooks-testing-library"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:09:13.810412+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:09:13.810412+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-29T17:59:31.250401+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a0850dc4365774272763fecef574a5f669877ea2ee7b0b8921ffeb4e8248fe3b", "fetched_at": "2026-08-28T04:09:13.810412+00:00", "kind": "readme", "missing": false, "url": "https://github.com/testing-library/react-hooks-testing-library"}, {"content_hash": "bc674183ff8078fb6ae63e6cdfe17d83cd095b842d9cc3d5a69db81262259f4a", "fetched_at": "2026-08-29T08:54:54.139557+00:00", "kind": "homepage", "missing": false, "url": "https://react-hooks-testing-library.com"}, {"content_hash": "a105372e8c46a8caaabb8c899b82239427f32b20d391936541e274fa2f8c78a0", "fetched_at": "2026-08-29T08:54:54.148396+00:00", "kind": "site_page", "missing": false, "url": "https://react-hooks-testing-library.com/installation"}, {"content_hash": "0ae17dd723945bf7b64516035f91faebd413548f013ef5757e7236095c1cceca", "fetched_at": "2026-08-29T08:54:54.150546+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/react-hooks-testing-library"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:09:13.810412+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:09:13.810412+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:09:13.810412+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-29T17:59:31.250401+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a0850dc4365774272763fecef574a5f669877ea2ee7b0b8921ffeb4e8248fe3b", "fetched_at": "2026-08-28T04:09:13.810412+00:00", "kind": "readme", "missing": false, "url": "https://github.com/testing-library/react-hooks-testing-library"}, {"content_hash": "bc674183ff8078fb6ae63e6cdfe17d83cd095b842d9cc3d5a69db81262259f4a", "fetched_at": "2026-08-29T08:54:54.139557+00:00", "kind": "homepage", "missing": false, "url": "https://react-hooks-testing-library.com"}, {"content_hash": "a105372e8c46a8caaabb8c899b82239427f32b20d391936541e274fa2f8c78a0", "fetched_at": "2026-08-29T08:54:54.148396+00:00", "kind": "site_page", "missing": false, "url": "https://react-hooks-testing-library.com/installation"}, {"content_hash": "0ae17dd723945bf7b64516035f91faebd413548f013ef5757e7236095c1cceca", "fetched_at": "2026-08-29T08:54:54.150546+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/react-hooks-testing-library"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:09:13.810412+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:09:13.810412+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-29T17:59:31.250401+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a0850dc4365774272763fecef574a5f669877ea2ee7b0b8921ffeb4e8248fe3b", "fetched_at": "2026-08-28T04:09:13.810412+00:00", "kind": "readme", "missing": false, "url": "https://github.com/testing-library/react-hooks-testing-library"}, {"content_hash": "bc674183ff8078fb6ae63e6cdfe17d83cd095b842d9cc3d5a69db81262259f4a", "fetched_at": "2026-08-29T08:54:54.139557+00:00", "kind": "homepage", "missing": false, "url": "https://react-hooks-testing-library.com"}, {"content_hash": "a105372e8c46a8caaabb8c899b82239427f32b20d391936541e274fa2f8c78a0", "fetched_at": "2026-08-29T08:54:54.148396+00:00", "kind": "site_page", "missing": false, "url": "https://react-hooks-testing-library.com/installation"}, {"content_hash": "0ae17dd723945bf7b64516035f91faebd413548f013ef5757e7236095c1cceca", "fetched_at": "2026-08-29T08:54:54.150546+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/react-hooks-testing-library"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-29T17:59:31.250401+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a0850dc4365774272763fecef574a5f669877ea2ee7b0b8921ffeb4e8248fe3b", "fetched_at": "2026-08-28T04:09:13.810412+00:00", "kind": "readme", "missing": false, "url": "https://github.com/testing-library/react-hooks-testing-library"}, {"content_hash": "bc674183ff8078fb6ae63e6cdfe17d83cd095b842d9cc3d5a69db81262259f4a", "fetched_at": "2026-08-29T08:54:54.139557+00:00", "kind": "homepage", "missing": false, "url": "https://react-hooks-testing-library.com"}, {"content_hash": "a105372e8c46a8caaabb8c899b82239427f32b20d391936541e274fa2f8c78a0", "fetched_at": "2026-08-29T08:54:54.148396+00:00", "kind": "site_page", "missing": false, "url": "https://react-hooks-testing-library.com/installation"}, {"content_hash": "0ae17dd723945bf7b64516035f91faebd413548f013ef5757e7236095c1cceca", "fetched_at": "2026-08-29T08:54:54.150546+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/react-hooks-testing-library"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-29T17:59:31.250401+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a0850dc4365774272763fecef574a5f669877ea2ee7b0b8921ffeb4e8248fe3b", "fetched_at": "2026-08-28T04:09:13.810412+00:00", "kind": "readme", "missing": false, "url": "https://github.com/testing-library/react-hooks-testing-library"}, {"content_hash": "bc674183ff8078fb6ae63e6cdfe17d83cd095b842d9cc3d5a69db81262259f4a", "fetched_at": "2026-08-29T08:54:54.139557+00:00", "kind": "homepage", "missing": false, "url": "https://react-hooks-testing-library.com"}, {"content_hash": "a105372e8c46a8caaabb8c899b82239427f32b20d391936541e274fa2f8c78a0", "fetched_at": "2026-08-29T08:54:54.148396+00:00", "kind": "site_page", "missing": false, "url": "https://react-hooks-testing-library.com/installation"}, {"content_hash": "0ae17dd723945bf7b64516035f91faebd413548f013ef5757e7236095c1cceca", "fetched_at": "2026-08-29T08:54:54.150546+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/react-hooks-testing-library"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-29T17:59:31.250401+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a0850dc4365774272763fecef574a5f669877ea2ee7b0b8921ffeb4e8248fe3b", "fetched_at": "2026-08-28T04:09:13.810412+00:00", "kind": "readme", "missing": false, "url": "https://github.com/testing-library/react-hooks-testing-library"}, {"content_hash": "bc674183ff8078fb6ae63e6cdfe17d83cd095b842d9cc3d5a69db81262259f4a", "fetched_at": "2026-08-29T08:54:54.139557+00:00", "kind": "homepage", "missing": false, "url": "https://react-hooks-testing-library.com"}, {"content_hash": "a105372e8c46a8caaabb8c899b82239427f32b20d391936541e274fa2f8c78a0", "fetched_at": "2026-08-29T08:54:54.148396+00:00", "kind": "site_page", "missing": false, "url": "https://react-hooks-testing-library.com/installation"}, {"content_hash": "0ae17dd723945bf7b64516035f91faebd413548f013ef5757e7236095c1cceca", "fetched_at": "2026-08-29T08:54:54.150546+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/react-hooks-testing-library"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 0, "longevity": 100, "rhythm": 8}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 2853, "days_push": 946, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 23, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}