{"id":20567380,"url":"https://github.com/sombriks/sample-testable-code","last_synced_at":"2026-05-14T22:49:16.839Z","repository":{"id":210328523,"uuid":"726223243","full_name":"sombriks/sample-testable-code","owner":"sombriks","description":"sample code for blog post","archived":false,"fork":false,"pushed_at":"2023-12-05T01:46:51.000Z","size":102,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-06T09:23:03.604Z","etag":null,"topics":["ava","cross-env","dotenv-flow","knex","koa","sinon","supertest"],"latest_commit_sha":null,"homepage":"https://sombriks.com/blog/0060-testable-code/","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/sombriks.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":"2023-12-01T19:58:58.000Z","updated_at":"2025-01-05T09:04:17.000Z","dependencies_parsed_at":"2025-03-06T09:28:47.821Z","dependency_job_id":null,"html_url":"https://github.com/sombriks/sample-testable-code","commit_stats":null,"previous_names":["sombriks/sample-testable-code"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sombriks/sample-testable-code","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sombriks%2Fsample-testable-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sombriks%2Fsample-testable-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sombriks%2Fsample-testable-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sombriks%2Fsample-testable-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sombriks","download_url":"https://codeload.github.com/sombriks/sample-testable-code/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sombriks%2Fsample-testable-code/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260063650,"owners_count":22953567,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["ava","cross-env","dotenv-flow","knex","koa","sinon","supertest"],"created_at":"2024-11-16T04:46:32.980Z","updated_at":"2025-10-23T18:35:31.814Z","avatar_url":"https://github.com/sombriks.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Is this code really testable?](https://github.com/sombriks/sample-testable-code)\n\nSmall snippets of code and tests for [this blog post](https://sombriks.com/blog/0060-testable-code/)\n\n## Requirements\n\n- node 18+\n- docker 20+\n\n## Running\n\n[Each project](01-barely-testable/README.md)\n[has](02-some-modularization/README.md)\n[its own](03-environment-aware/README.md)\n[README.md](04-dependency-injection-points/README.md) and all of them will\nexpect a PostgreSQL database running.\n\nThis project provides a [compose file](00-database/docker-compose.yml) so you\ndon't need to worry about it.\n\nTo run the database:\n\n```bash\ndocker compose -f 00-database/docker-compose.yml up \n```\n\n## Further information\n\nSee blog post.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsombriks%2Fsample-testable-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsombriks%2Fsample-testable-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsombriks%2Fsample-testable-code/lists"}