{"id":18745310,"url":"https://github.com/kwishna/express-supertest-api","last_synced_at":"2026-04-06T08:01:30.935Z","repository":{"id":240520444,"uuid":"786511715","full_name":"kwishna/express-supertest-api","owner":"kwishna","description":"API testing using supertest library.","archived":false,"fork":false,"pushed_at":"2024-05-19T13:28:42.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-20T08:07:22.970Z","etag":null,"topics":["api-testing-framework","expressjs","javascript","nock","rest-api","rest-api-test","supertest"],"latest_commit_sha":null,"homepage":"","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/kwishna.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":"2024-04-14T17:27:59.000Z","updated_at":"2024-07-19T21:07:48.000Z","dependencies_parsed_at":"2024-05-19T14:30:11.358Z","dependency_job_id":"a9bbd0b2-870c-4f05-b716-8e6c34abb320","html_url":"https://github.com/kwishna/express-supertest-api","commit_stats":null,"previous_names":["kwishna/express-supertest-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kwishna/express-supertest-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwishna%2Fexpress-supertest-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwishna%2Fexpress-supertest-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwishna%2Fexpress-supertest-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwishna%2Fexpress-supertest-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kwishna","download_url":"https://codeload.github.com/kwishna/express-supertest-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwishna%2Fexpress-supertest-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31464102,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"online","status_checked_at":"2026-04-06T02:00:07.287Z","response_time":112,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["api-testing-framework","expressjs","javascript","nock","rest-api","rest-api-test","supertest"],"created_at":"2024-11-07T16:17:35.323Z","updated_at":"2026-04-06T08:01:30.919Z","avatar_url":"https://github.com/kwishna.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# API Testing Framework\n\nThis project provides a comprehensive framework for API testing using popular\nNode.js libraries such as 'superagent', 'supertest', and 'nock'. It allows you\nto write and execute tests for your APIs, as well as mock external API responses\nfor more reliable and isolated testing.\n\n## Features\n\n- **API Testing**: Write tests for your APIs using the powerful 'superagent' and\n  'supertest' libraries.\n- **API Mocking**: Mock external API responses using the 'nock' library,\n  ensuring consistent and isolated testing environments.\n- **Backend ExpressJS Server**: Real API backend implemented using the 'express'\n  and 'mongoose' library.\n- **Modular Structure**: The framework is designed with a modular structure,\n  making it easy to organize and maintain your tests.\n- **Extensible**: Easily extend the framework with additional libraries or\n  custom utilities to suit your specific testing needs.\n\n## Getting Started\n\n1. Clone the repository:\n\ngit clone https://github.com/kwishna/express-supertest-api.git\n\n2. Install dependencies:\n\ncd express-supertest-api npm install\n\n3. Write your tests in the `tests/` directory, following the provided examples.\n\n4. Run the tests.\n\n## Project Structure\n\n- `tests/`: Directory containing your API test files.\n- `mocks/`: Directory for defining API mocks using 'nock'.\n- `utils/`: Utility functions and helpers for testing.\n- `package.json`: Project configuration and dependencies.\n\n## Contributing\n\nContributions are welcome! If you find any issues or have suggestions for\nimprovements, please open an issue or submit a pull request.\n\n## License\n\nThis project is not licensed. Free for use by anyone.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkwishna%2Fexpress-supertest-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkwishna%2Fexpress-supertest-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkwishna%2Fexpress-supertest-api/lists"}