{"id":17329959,"url":"https://github.com/coderbyheart/testing-with-node","last_synced_at":"2025-07-01T03:07:41.173Z","repository":{"id":188494352,"uuid":"678842203","full_name":"coderbyheart/testing-with-node","owner":"coderbyheart","description":"Minimal example for writing tests with Node.js","archived":false,"fork":false,"pushed_at":"2023-08-22T09:50:55.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"saga","last_synced_at":"2025-06-04T11:26:22.054Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":false,"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/coderbyheart.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":"2023-08-15T14:05:53.000Z","updated_at":"2023-08-15T14:06:24.000Z","dependencies_parsed_at":"2024-12-05T18:26:25.751Z","dependency_job_id":"4d9f6c3c-4aeb-4e95-ae02-8ea348b2a8af","html_url":"https://github.com/coderbyheart/testing-with-node","commit_stats":null,"previous_names":["coderbyheart/testing-with-node"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/coderbyheart/testing-with-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderbyheart%2Ftesting-with-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderbyheart%2Ftesting-with-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderbyheart%2Ftesting-with-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderbyheart%2Ftesting-with-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderbyheart","download_url":"https://codeload.github.com/coderbyheart/testing-with-node/tar.gz/refs/heads/saga","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderbyheart%2Ftesting-with-node/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262887200,"owners_count":23379768,"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":[],"created_at":"2024-10-15T14:49:55.555Z","updated_at":"2025-07-01T03:07:41.145Z","avatar_url":"https://github.com/coderbyheart.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Setting up testing for a Node.js project\n\n[![Run tests](https://github.com/coderbyheart/testing-with-node/actions/workflows/test.yml/badge.svg)](https://github.com/coderbyheart/testing-with-node/actions/workflows/test.yml)\n\n- \u003chttps://nodejs.org/api/test.html\u003e\n- \u003chttps://nodejs.org/api/assert.html\u003e\n- \u003chttps://github.com/SimoneGianni/tsMatchers\u003e\n\nRun tests:\n\n```bash\nnpm test\n```\n\nWatch:\n\n```bash\nnpx tsx --test --watch **/*.spec.ts\n```\n\n## Video\n\nI made a video recording of building this repo, but the microphone dropped out in the middle, so [here are the first 10 minutes](https://www.youtube.com/watch?v=I9EIk9klpZI), which nevertheless shows how to set up testing for a Node.js project from scratch with TypeScript, the Node.js test runner and assertion library.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderbyheart%2Ftesting-with-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderbyheart%2Ftesting-with-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderbyheart%2Ftesting-with-node/lists"}