{"id":21431567,"url":"https://github.com/tomdoestech/testing-express-rest-api","last_synced_at":"2026-03-05T16:17:52.904Z","repository":{"id":37568210,"uuid":"415179365","full_name":"TomDoesTech/Testing-Express-REST-API","owner":"TomDoesTech","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-18T10:11:38.000Z","size":130,"stargazers_count":154,"open_issues_count":1,"forks_count":79,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-01T12:14:47.462Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/TomDoesTech.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":"2021-10-09T02:23:23.000Z","updated_at":"2025-04-01T12:19:27.000Z","dependencies_parsed_at":"2025-01-03T08:11:36.089Z","dependency_job_id":"8288b6f0-f513-4c59-ad00-d8affc494b27","html_url":"https://github.com/TomDoesTech/Testing-Express-REST-API","commit_stats":{"total_commits":3,"total_committers":2,"mean_commits":1.5,"dds":"0.33333333333333337","last_synced_commit":"3299d38a698821fcee725ba71f50c3dc1c09eb81"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TomDoesTech/Testing-Express-REST-API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomDoesTech%2FTesting-Express-REST-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomDoesTech%2FTesting-Express-REST-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomDoesTech%2FTesting-Express-REST-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomDoesTech%2FTesting-Express-REST-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TomDoesTech","download_url":"https://codeload.github.com/TomDoesTech/Testing-Express-REST-API/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomDoesTech%2FTesting-Express-REST-API/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259857847,"owners_count":22922842,"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-11-22T23:08:04.340Z","updated_at":"2026-03-05T16:17:52.865Z","avatar_url":"https://github.com/TomDoesTech.png","language":"TypeScript","funding_links":["https://www.buymeacoffee.com/tomn"],"categories":[],"sub_categories":[],"readme":"# Testing Express REST API\n\n## Key takeaways\n* An understanding of how important testing is\n* Testing doesn't have to be complicated or difficult\n\n## What will you learn?\n* Testing a REST API end-to-end with Supertest \u0026 mongodb-memory-server\n* Mocking services\n* Testing from the controller to the service\n\n\nRead: https://github.com/goldbergyoni/javascript-testing-best-practices\n\n## What you will need\n* Clone this repository: https://github.com/TomDoesTech/REST-API-Tutorial-Updated\n* An IDE or text editor (VS Code)\n* A package manager such as NPM or Yarn\n* Node.js installed\n\n\n## What next?\n* ~~Testing the API with Jest~~\n* Build a React.js user interface\n* Add Prometheus metrics to the API\n* Deploy the API with Caddy \u0026 Docker\n* Add Google OAuth\n\n## Data flow\n![](./diagrams/data-flow-testing.png)\n\n\n## Let's keep in touch\n- [Subscribe on YouTube](https://www.youtube.com/TomDoesTech)\n- [Discord](https://discord.gg/4ae2Esm6P7)\n- [Twitter](https://twitter.com/tomdoes_tech)\n- [TikTok](https://www.tiktok.com/@tomdoestech)\n- [Facebook](https://www.facebook.com/tomdoestech)\n- [Instagram](https://www.instagram.com/tomdoestech)\n\n[Buy me a Coffee](https://www.buymeacoffee.com/tomn)\n\n[Sign up to DigitalOcean 💖](https://m.do.co/c/1b74cb8c56f4)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomdoestech%2Ftesting-express-rest-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomdoestech%2Ftesting-express-rest-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomdoestech%2Ftesting-express-rest-api/lists"}