{"id":19329944,"url":"https://github.com/marmelab/integration-test-rest-api","last_synced_at":"2025-07-11T16:01:55.223Z","repository":{"id":66330471,"uuid":"298263510","full_name":"marmelab/integration-test-rest-api","owner":"marmelab","description":"Integration test on Node API","archived":false,"fork":false,"pushed_at":"2020-09-24T11:54:01.000Z","size":85,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-14T14:02:18.171Z","etag":null,"topics":["frisby","integration-testing","jest","joi","nodejs","test"],"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/marmelab.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}},"created_at":"2020-09-24T11:52:59.000Z","updated_at":"2020-12-14T11:58:18.000Z","dependencies_parsed_at":"2023-06-26T22:08:30.414Z","dependency_job_id":null,"html_url":"https://github.com/marmelab/integration-test-rest-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marmelab/integration-test-rest-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marmelab%2Fintegration-test-rest-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marmelab%2Fintegration-test-rest-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marmelab%2Fintegration-test-rest-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marmelab%2Fintegration-test-rest-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marmelab","download_url":"https://codeload.github.com/marmelab/integration-test-rest-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marmelab%2Fintegration-test-rest-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260998992,"owners_count":23095224,"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":["frisby","integration-testing","jest","joi","nodejs","test"],"created_at":"2024-11-10T02:32:36.204Z","updated_at":"2025-06-20T18:38:17.720Z","avatar_url":"https://github.com/marmelab.png","language":"JavaScript","readme":"# Integration test on Node API\n\nThis project show how to use [frisby](https://github.com/vlucas/frisby) and [joi](https://github.com/sideway/joi) to test your Node API.\n\n## Prerequisites\n\n- Node 14.x or more\n- Yarn 1.x\n\n## Start the API\n\n```sh\nyarn # Install the dep\n\nyarn dev # start the API on localhost:3000 in watch mode\n\nyarn start # start the API on localhost:3000 (production)\n```\n\nRoutes:\n\n```\nGET -\u003e / -\u003e Return Hello World\n\nGET -\u003e /users -\u003e Return the list of all users\n\nGET -\u003e /users/:id -\u003e Return the user by this :id\n```\n\n## Unit test\n\n```sh\nyarn test:unit:watch # Start unit test in watch mode\n\nyarn test:unit # Start unit test, CI command\n```\n\nThe tests can be found in `./src/**/*.spec.js`\n\n## Integration test\n\nThese command start the API in production node (`yarn start`), wait for it to be launched (`start-server-and-test` dependency) and start the integration tests.\n\n```sh\nyarn test:integration:watch # Start integration test in watch mode\n\nyarn test:integration:ci # Start integration test, CI command\n```\n\nThe tests can be found in `./integration-tests/**/*.spec.js`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarmelab%2Fintegration-test-rest-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarmelab%2Fintegration-test-rest-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarmelab%2Fintegration-test-rest-api/lists"}