{"id":14967413,"url":"https://github.com/codewithmmak/supertest-mocha-chai-javascript","last_synced_at":"2025-10-25T19:31:06.394Z","repository":{"id":64609344,"uuid":"576910072","full_name":"codewithmmak/supertest-mocha-chai-javascript","owner":"codewithmmak","description":"This is a sample API Test Automation framework designed using SuperTest, Mocha, Chai, and FakerJS. And in this framework we will see some basic working examples for learning.","archived":false,"fork":false,"pushed_at":"2024-09-04T22:48:55.000Z","size":497,"stargazers_count":6,"open_issues_count":10,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-01T05:52:51.443Z","etag":null,"topics":["api-automation","api-testing-framework","chaijs","fakerjs","mochajs","mochawesome","nodejs","rimraf","supertest","supertest-mocha-chai"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codewithmmak.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":"2022-12-11T11:45:51.000Z","updated_at":"2024-04-25T06:22:39.000Z","dependencies_parsed_at":"2024-01-12T20:14:20.510Z","dependency_job_id":"42ba2e9a-7a33-4b9f-9a82-e8e2b2f4ceeb","html_url":"https://github.com/codewithmmak/supertest-mocha-chai-javascript","commit_stats":{"total_commits":19,"total_committers":3,"mean_commits":6.333333333333333,"dds":0.368421052631579,"last_synced_commit":"600748c61468d6a34a169552dfd1512335bd6c12"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithmmak%2Fsupertest-mocha-chai-javascript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithmmak%2Fsupertest-mocha-chai-javascript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithmmak%2Fsupertest-mocha-chai-javascript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithmmak%2Fsupertest-mocha-chai-javascript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codewithmmak","download_url":"https://codeload.github.com/codewithmmak/supertest-mocha-chai-javascript/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219865149,"owners_count":16555931,"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":["api-automation","api-testing-framework","chaijs","fakerjs","mochajs","mochawesome","nodejs","rimraf","supertest","supertest-mocha-chai"],"created_at":"2024-09-24T13:38:01.427Z","updated_at":"2025-10-25T19:31:01.001Z","avatar_url":"https://github.com/codewithmmak.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\n# API Testing using SuperTest, Mocha, Chai, and FakerJS\n\u003cimg src=\"assets/API-Testing-using-SuperTest-Mocha-Chai-and-FakerJS.png\"/\u003e\n---\n\n## ![GitHub Repo stars](https://img.shields.io/github/stars/codewithmmak/supertest-mocha-chai-javascript?style=social) the project if you like the work.\n\n## Getting started\n\n### Pre-requisites\n* Download and install Node.js\n* Download and install any Text Editor like Visual Code/Sublime/Brackets\n* Initilize the project with default settings `npm init -y`\n* Install dependencies `npm install --save-dev supertest mocha chai mochawesome @faker-js/faker`\n\n### Setup Visual Code\n* Install GitLens Extension from the Marketplace: `GitLens — Git supercharged by GitKraken`\n* Go to Visual Code Preference \u003e Setting and search `formatOnSave` and enable/ON it.\n\n### Setup Git Repo \n* Clone the repository into a folder\n* Go to Project root directory and install Dependency: `npm install`\n* All the dependencies from package.json would be installed in node_modules folder.\n\n### How to write Test\n* Add new spec under `test-reqres-api` folder\n* Add file and name the file as testname.js (e.g. deleteTest.js)\n\n### How to Run Test\n* Go to Project root directory and run command: `npm test`\n* If you want to run another set of api tests then run command: `npm run test-fakerest`\n\n### How to Update local npm packages\n* Go to Project root directory and run command: `npm update`\n\n### How to view HTML report\n* Go to Project root directory: `./mochawesome-report/mochawesome.html`\n\n### Sample Test Results\n![API Testing using SuperTest, Mocha, Chai, and FakerJS Test Report](./assets/mochawesome-report.PNG?raw=true \"API Testing using SuperTest, Mocha, Chai, and FakerJS Test Report\")\n\n![API Testing using SuperTest, Mocha, Chai, and FakerJS Test Report Expanded View](./assets/mochawesome-report-expanded-view.PNG?raw=true \"API Testing using SuperTest, Mocha, Chai, and FakerJS Test Report Expanded View\")\n\n## :thought_balloon: Checkout the blogs related to Software Testing on my [website]\n[website]: https://www.codewithmmak.com/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewithmmak%2Fsupertest-mocha-chai-javascript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodewithmmak%2Fsupertest-mocha-chai-javascript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewithmmak%2Fsupertest-mocha-chai-javascript/lists"}