{"id":16199627,"url":"https://github.com/or13/testing-react-redux-graphql","last_synced_at":"2026-04-11T14:32:44.136Z","repository":{"id":95128026,"uuid":"113887410","full_name":"OR13/testing-react-redux-graphql","owner":"OR13","description":null,"archived":false,"fork":false,"pushed_at":"2017-12-11T20:17:45.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T17:47:53.245Z","etag":null,"topics":["apollo","encryption","graphql","jest","mock","pokemon","react","redux"],"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/OR13.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":"2017-12-11T17:19:01.000Z","updated_at":"2018-02-12T03:32:38.000Z","dependencies_parsed_at":"2023-05-26T21:00:21.483Z","dependency_job_id":null,"html_url":"https://github.com/OR13/testing-react-redux-graphql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/OR13/testing-react-redux-graphql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OR13%2Ftesting-react-redux-graphql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OR13%2Ftesting-react-redux-graphql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OR13%2Ftesting-react-redux-graphql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OR13%2Ftesting-react-redux-graphql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OR13","download_url":"https://codeload.github.com/OR13/testing-react-redux-graphql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OR13%2Ftesting-react-redux-graphql/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259512332,"owners_count":22869387,"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":["apollo","encryption","graphql","jest","mock","pokemon","react","redux"],"created_at":"2024-10-10T09:26:42.138Z","updated_at":"2025-12-30T22:36:41.651Z","avatar_url":"https://github.com/OR13.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Testing React Redux \u0026 GraphQL\n\n```\nyarn install\nyarn mock:clean \nyarn mock:gen \nyarn test\nyarn start\n```\n\n`yarn mock:clean` deletes mock data used by graphql tests.\n\n`yarn mock:gen` generates data to be used by graphql tests and saves the data to a file. \n\nThis makes it possible to test without making real network requests.\n\n`yarn test` and select `a` to run all tests. These tests verify the component, and the graphql container using the generated mock data.\n\n`yarn start` run the app in devlopment mode.\n\n\n## Motivation\n\nIt is desirable to test react components, redux containers and graphql functionality in isolation and integration.\n\nThis create-react-app derived app shows how components, redux and graphql containers can all be tested.\n\nIt also shows how mock data can be retrieved via real network requests and then used in subsequent tests. This enables developers to adjust to data changes easily.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2For13%2Ftesting-react-redux-graphql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2For13%2Ftesting-react-redux-graphql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2For13%2Ftesting-react-redux-graphql/lists"}