{"adoption": {"forks": 174, "observed_at": "2026-08-28T04:05:59.708788+00:00", "stars": 1963}, "canonical_url": "https://ross.abutalabs.com/products/js-unit-testing-guide", "card": {"archived": false, "artifact_type": "learning-resource", "description": "📙  A guide to unit testing in Javascript", "domain": ["testing", "developer-tools", "tutorials"], "enriched": true, "function": ["testing", "documentation"], "health_score": 46, "homepage": null, "language": null, "license": null, "license_family": "other", "maturity": "active", "member_repos": ["mawrkus/js-unit-testing-guide"], "name": "mawrkus/js-unit-testing-guide", "platform": ["cross-platform"], "pushed_at": "2025-09-20T09:15:51+00:00", "repo": "mawrkus/js-unit-testing-guide", "stars": 1963, "tags": ["unit-testing", "tdd", "best-practices", "javascript", "guide", "katas", "nodejs"], "topics": ["unit-testing", "unit-test", "tdd", "katas", "javascript", "testing", "best-practices"], "urls": [], "use_cases": ["learn how to write unit tests in javascript", "best practices for structuring javascript unit tests", "how to apply TDD in javascript projects", "when to mock dependencies in unit tests", "how to name and organize test cases", "improve test code quality before code review", "practice testing with code katas"], "what_it_is": "A living-document guide to unit testing in JavaScript, covering general principles, TDD, test structure, naming, mocking, and best practices with illustrative examples. It is maintained as a markdown document with community contributions and translations.", "when_to_avoid": ["you need a runnable testing framework or tool rather than documentation", "you need end-to-end or integration testing guidance specifically", "you need framework-specific documentation like Jest or Vitest APIs"], "when_to_choose": ["you want a concise, opinionated reference on JavaScript unit testing principles", "you are onboarding developers to TDD and unit testing practices", "you need guidelines for reviewing test code"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/js-unit-testing-guide", "repo": "mawrkus/js-unit-testing-guide", "role": "main", "score": 52}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:05:59.708788+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T03:05:33.257781+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4ec3ff0055eec2a67be64c67bf9e5b929418f4d8d87cd722af245509ade198ca", "fetched_at": "2026-08-28T04:05:59.708788+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mawrkus/js-unit-testing-guide"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:05:59.708788+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T03:05:33.257781+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4ec3ff0055eec2a67be64c67bf9e5b929418f4d8d87cd722af245509ade198ca", "fetched_at": "2026-08-28T04:05:59.708788+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mawrkus/js-unit-testing-guide"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T03:05:33.257781+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4ec3ff0055eec2a67be64c67bf9e5b929418f4d8d87cd722af245509ade198ca", "fetched_at": "2026-08-28T04:05:59.708788+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mawrkus/js-unit-testing-guide"}], "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:05:59.708788+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:05:59.708788+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:05:59.708788+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T03:05:33.257781+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4ec3ff0055eec2a67be64c67bf9e5b929418f4d8d87cd722af245509ade198ca", "fetched_at": "2026-08-28T04:05:59.708788+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mawrkus/js-unit-testing-guide"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:05:59.708788+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:05:59.708788+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T03:05:33.257781+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4ec3ff0055eec2a67be64c67bf9e5b929418f4d8d87cd722af245509ade198ca", "fetched_at": "2026-08-28T04:05:59.708788+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mawrkus/js-unit-testing-guide"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:05:59.708788+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:05:59.708788+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:05:59.708788+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T03:05:33.257781+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4ec3ff0055eec2a67be64c67bf9e5b929418f4d8d87cd722af245509ade198ca", "fetched_at": "2026-08-28T04:05:59.708788+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mawrkus/js-unit-testing-guide"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:05:59.708788+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:05:59.708788+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T03:05:33.257781+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4ec3ff0055eec2a67be64c67bf9e5b929418f4d8d87cd722af245509ade198ca", "fetched_at": "2026-08-28T04:05:59.708788+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mawrkus/js-unit-testing-guide"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T03:05:33.257781+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4ec3ff0055eec2a67be64c67bf9e5b929418f4d8d87cd722af245509ade198ca", "fetched_at": "2026-08-28T04:05:59.708788+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mawrkus/js-unit-testing-guide"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T03:05:33.257781+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4ec3ff0055eec2a67be64c67bf9e5b929418f4d8d87cd722af245509ade198ca", "fetched_at": "2026-08-28T04:05:59.708788+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mawrkus/js-unit-testing-guide"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T03:05:33.257781+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4ec3ff0055eec2a67be64c67bf9e5b929418f4d8d87cd722af245509ade198ca", "fetched_at": "2026-08-28T04:05:59.708788+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mawrkus/js-unit-testing-guide"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 43, "longevity": 100, "rhythm": 35}, "computed_at": "2026-09-02T17:46:02.011165+00:00", "flags": ["no_releases", "no_license"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 4192, "days_push": 347, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 52, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}