{"id":25000141,"url":"https://github.com/thinkmill/react-testing","last_synced_at":"2026-02-13T08:03:41.557Z","repository":{"id":95828648,"uuid":"49725301","full_name":"Thinkmill/react-testing","owner":"Thinkmill","description":"Examples of how to test React.js applications","archived":false,"fork":false,"pushed_at":"2016-08-11T21:14:39.000Z","size":5,"stargazers_count":106,"open_issues_count":0,"forks_count":12,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-12-09T21:00:17.022Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/Thinkmill.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":"2016-01-15T14:58:54.000Z","updated_at":"2023-10-23T21:40:39.000Z","dependencies_parsed_at":"2023-03-22T09:06:13.994Z","dependency_job_id":null,"html_url":"https://github.com/Thinkmill/react-testing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Thinkmill/react-testing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thinkmill%2Freact-testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thinkmill%2Freact-testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thinkmill%2Freact-testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thinkmill%2Freact-testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Thinkmill","download_url":"https://codeload.github.com/Thinkmill/react-testing/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thinkmill%2Freact-testing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29399430,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-02-04T19:31:31.693Z","updated_at":"2026-02-13T08:03:41.521Z","avatar_url":"https://github.com/Thinkmill.png","language":null,"readme":"# Testing React Applications Examples\n\nThis repo showcases how to test various parts of a common React/Redux app using Mocha, `expect` and `enzyme`. You can see a guide using these examples over in the [`react-boilerplate` docs](https://github.com/mxstbr/react-boilerplate/blob/e5eeffb311b82a4a538a4d6e6d7e6a227d3d0ea6/docs/testing/README.md)!\n\n\u003e These are the examples of a talk I held at the Vienna React.js Meetup about \"Testing React.js Applications\"!\n\n## Setup\n\n1. `git clone git@github.com:mxstbr/react-testing`\n\n2. `cd react-testing`\n\n3. `npm install`\n\n## Structure\n\n```rb\n\nexamples/\n├── add       # Simple example of a unit test\n├── NavBar    # Redux actions and reducer tests\n└── Button    # React component tests\n```\n\n## Trying the tests\n\nThere's a bunch of commands to run different test \"classes\". The main command is\n\n### Run all tests\n\nRun the entire test suite.\n\n```\n$ npm run test\n```\n\n### Other commands\n\n- `$ npm run test:function`: Run the pure function tests\n\n- `$ npm run test:actions`: Run the action tests\n\n- `$ npm run test:reducer`: Run the reducer tests\n\n- `$ npm run test:redux`: Run both reducer and action tests\n\n- `$ npm run test:component`: Run the component tests\n\n- `$ npm run test:react`: Run all the redux tests and the component tests\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2016 Maximilian Stoiber\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkmill%2Freact-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthinkmill%2Freact-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkmill%2Freact-testing/lists"}