{"id":21169724,"url":"https://github.com/sadabnepal/pactum-api-test","last_synced_at":"2026-04-17T08:31:25.382Z","repository":{"id":229399684,"uuid":"768622453","full_name":"sadabnepal/pactum-api-test","owner":"sadabnepal","description":"api testing using pactum with mock services","archived":false,"fork":false,"pushed_at":"2024-04-07T04:27:36.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-19T23:58:58.792Z","etag":null,"topics":["api-testing-framework","eslint","pactumjs","rest-api"],"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/sadabnepal.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-03-07T12:32:22.000Z","updated_at":"2024-04-20T07:04:16.000Z","dependencies_parsed_at":"2024-03-28T11:40:43.094Z","dependency_job_id":"070eca00-d8e2-41bd-89f5-8fcb7c3e71ba","html_url":"https://github.com/sadabnepal/pactum-api-test","commit_stats":null,"previous_names":["sadabnepal/pactum-api-test"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sadabnepal/pactum-api-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sadabnepal%2Fpactum-api-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sadabnepal%2Fpactum-api-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sadabnepal%2Fpactum-api-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sadabnepal%2Fpactum-api-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sadabnepal","download_url":"https://codeload.github.com/sadabnepal/pactum-api-test/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sadabnepal%2Fpactum-api-test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31921774,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"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","eslint","pactumjs","rest-api"],"created_at":"2024-11-20T15:53:24.130Z","updated_at":"2026-04-17T08:31:25.355Z","avatar_url":"https://github.com/sadabnepal.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# api testing using pactum js with mock data\n\n### getting started\n```\ngit clone https://github.com/sadabnepal/pactum-api-test.git\ncd pactum-api-test\n```\n\n### pre-requisite\n[![NodeJs](https://img.shields.io/badge/-NodeJS-%23339933?logo=npm)](https://nodejs.org/en/download/)\n[![VSCode](https://img.shields.io/badge/-Visual%20Studio%20Code-%233178C6?logo=visual-studio-code)](https://code.visualstudio.com/download)\n\n### set environment\n```\nexport ENV=local  \n      OR\nexport ENV=dev\n```\n\n### run test\n```\nnpm run test\n```\n\n### stub details\nThe project is using [pactum mock](https://pactumjs.github.io/guides/mock-server.html) which provides following endpoints \n\n`GET: /api/users/{id}` fetches the user information by `user id` \u003cbr\u003e\n`POST: /api/users` fetches the user with query parameter `{ page: 2 }` \u003cbr\u003e\n`POST: /api/users` creates user with body `{ name: 'Ken', job: 'Test Engineer' }`\n`GET: /bearer` authenticate user with token that includes `Bearer` \u003cbr\u003e\n\n### learning references:\npactum: https://pactumjs.github.io/introduction/welcome.html \u003cbr\u003e\nsupertest: http://visionmedia.github \u003cbr\u003e\nmocha: https://ricostacruz.com/mocha/ \u003cbr\u003e\nmocha config: https://github.com/mochajs/mocha/tree/master/example/config \u003cbr\u003e\neslint: https://eslint.org/docs/latest/use/getting-started \u003cbr\u003e\nvscode settings: https://code.visualstudio.com/docs/getstarted/settings \u003cbr\u003e\nBlog: https://medium.com/@joaovitorcoelho10/pactumjs-a-next-gen-rest-api-testing-tool-ae88a9e51916\n\n### TODO:\n      - better reusable http calls\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsadabnepal%2Fpactum-api-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsadabnepal%2Fpactum-api-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsadabnepal%2Fpactum-api-test/lists"}