{"id":17955193,"url":"https://github.com/ianhomer/try-jest","last_synced_at":"2026-05-09T00:06:16.095Z","repository":{"id":136891750,"uuid":"401763788","full_name":"ianhomer/try-jest","owner":"ianhomer","description":"Explore Jest - JavaScript test framework","archived":false,"fork":false,"pushed_at":"2023-06-25T07:18:47.000Z","size":1661,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T16:50:13.328Z","etag":null,"topics":["explore","javascript","jest","test"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ianhomer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-08-31T16:01:54.000Z","updated_at":"2024-09-12T08:07:47.000Z","dependencies_parsed_at":"2025-04-03T16:48:47.175Z","dependency_job_id":"0dd9944d-324c-40b6-ba2f-17aaf3285d88","html_url":"https://github.com/ianhomer/try-jest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ianhomer/try-jest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianhomer%2Ftry-jest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianhomer%2Ftry-jest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianhomer%2Ftry-jest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianhomer%2Ftry-jest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ianhomer","download_url":"https://codeload.github.com/ianhomer/try-jest/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianhomer%2Ftry-jest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32802537,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["explore","javascript","jest","test"],"created_at":"2024-10-29T10:25:14.391Z","updated_at":"2026-05-09T00:06:16.074Z","avatar_url":"https://github.com/ianhomer.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# try-jest\n\nTry Jest\n\n## Getting started\n\n    pnpm install\n    pnpm test\n\n## Make changes\n\n### TDD\n\n    pnpm test:watch\n\n- Write simplest (failing) test that reads like a specification\n- Write simplest code to get green\n- Commit\n  - if test fails then **your code is reverted**\n  - if your code was not covered by tests then **your code is reverted**\n  - if test passes and commit is OK, then code automatically pushed to origin\n  - if you haven't been correcting lint errors in your editor then push will be\n    rejected\n- Refactor code to make it beautiful (and commit)\n- Repeat and create all tests that you can think that should fail for your\n  specification\n\n![TDD](images/tdd.png)\n\n### TDD katas\n\nRead \u003chttp://www.codemanship.co.uk/tdd_jasongorman_codemanship.pdf\u003e\n\n### TCR\n\nAs with TDD flow above, but no peaking. When you commit, if change is no good,\nyou loose the change, but gain wisdom. If all good then straight to remote trunk\nto share the goodness.\n\nFor TCR experience in `package.json` change the following.\n\n    \"pre-commit\": \"lint-staged --quiet \u0026\u0026 npm test || (git reset --hard HEAD \u0026\u0026 exit 1)\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fianhomer%2Ftry-jest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fianhomer%2Ftry-jest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fianhomer%2Ftry-jest/lists"}