{"id":21528239,"url":"https://github.com/znsio/specmatic-order-ui-react","last_synced_at":"2025-03-17T18:44:50.125Z","repository":{"id":167834281,"uuid":"643463287","full_name":"znsio/specmatic-order-ui-react","owner":"znsio","description":"Sample react project to demonstrate how we can stub APIs by leveraging their OpenAPI specifications with Specmatic in Jest UI component testing.","archived":false,"fork":false,"pushed_at":"2024-04-16T01:09:40.000Z","size":2492,"stargazers_count":0,"open_issues_count":5,"forks_count":1,"subscribers_count":7,"default_branch":"main","last_synced_at":"2024-04-16T08:50:05.513Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/znsio.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}},"created_at":"2023-05-21T08:39:46.000Z","updated_at":"2024-04-24T03:27:20.356Z","dependencies_parsed_at":"2024-02-20T11:29:34.239Z","dependency_job_id":"5320b919-96a9-403f-a24c-ff3da1f54969","html_url":"https://github.com/znsio/specmatic-order-ui-react","commit_stats":null,"previous_names":["znsio/specmatic-order-ui-react"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znsio%2Fspecmatic-order-ui-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znsio%2Fspecmatic-order-ui-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znsio%2Fspecmatic-order-ui-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znsio%2Fspecmatic-order-ui-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/znsio","download_url":"https://codeload.github.com/znsio/specmatic-order-ui-react/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244091761,"owners_count":20396667,"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-24T01:52:20.408Z","updated_at":"2025-03-17T18:44:50.103Z","avatar_url":"https://github.com/znsio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Diagram](./assets/order_ui_react_architecture.gif)\n\n# React Jest UI Component Testing with Specmatic\nThis project demonstrates stubbing APIs with Specmatic by leveraging their OpenAPI specifications in Jest UI Component Tests.\n\n## Install dependencies\n```shell\nnpm install\n```\n\n### Start the application\n```shell\nnpm start\n```\n\n## Running automated UI Component tests with Specmatic\n```shell\nnpm test\n```\n\n## Updating the stub expectations\nRefer to this [documentation](https://specmatic.io/documentation/test_data_format.html) in order to understand how to update the stub expectations.\n\n## FAQs\n\n### 1. Error `ReferenceError: setImmediate is not defined`\n\nThis happens due to an issue in Jest. The easiest solution is to import `core-js` in the affected test file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fznsio%2Fspecmatic-order-ui-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fznsio%2Fspecmatic-order-ui-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fznsio%2Fspecmatic-order-ui-react/lists"}