{"id":22415360,"url":"https://github.com/esau-morais/react-testing","last_synced_at":"2026-05-08T13:43:45.316Z","repository":{"id":124568066,"uuid":"310851974","full_name":"esau-morais/react-testing","owner":"esau-morais","description":"react-testing-library workshop, by Kent C. Dodds","archived":false,"fork":false,"pushed_at":"2020-11-16T01:15:55.000Z","size":909,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T09:25:11.250Z","etag":null,"topics":["jest","react","react-testing","react-testing-library","reactjs","testing","tests"],"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/esau-morais.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-07T13:33:24.000Z","updated_at":"2022-10-23T23:56:15.000Z","dependencies_parsed_at":"2023-08-08T04:33:29.035Z","dependency_job_id":null,"html_url":"https://github.com/esau-morais/react-testing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esau-morais%2Freact-testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esau-morais%2Freact-testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esau-morais%2Freact-testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esau-morais%2Freact-testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/esau-morais","download_url":"https://codeload.github.com/esau-morais/react-testing/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245779486,"owners_count":20670688,"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":["jest","react","react-testing","react-testing-library","reactjs","testing","tests"],"created_at":"2024-12-05T15:12:02.905Z","updated_at":"2026-05-08T13:43:40.279Z","avatar_url":"https://github.com/esau-morais.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Testing\n\n![React Testing](https://blog.rocketseat.com.br/content/images/2020/08/introducao-a-testing-library-testando-componentes-react.png)\n\n_Course material for testing React components using react-testing-library, by Kent C. Dodds_\n\n## Folder structure\n\n```\nreact-testing\n└───src\n    └─── __tests__\n│   │   │ \n│   │   │ (test files)\n│   │\n│   │ (component files)\n```\n\n## Test files\n\n- `react-dom.js` - Render a React component for testing\n- `jest-dom.js` - Use jest-dom for improved assertions\n- `dom-testing-library.js` - Use dom-testing-library to write more maintainable\n  React tests\n- `react-testing-library.js` - Use react-testing-library to render and test\n  React Components\n- `localized.js` - Testing localized content with react-testing-library\n- `state.js` - Test React Component state changes with react-testing-library\n- `prop-updates.js` - Test prop updates with react-testing-library\n- `a11y.js` - Test accessibility of rendered React Components with jest-axe\n- `dependency-injection.js` - Mock HTTP Requests with Dependency Injection in\n  React Component Tests\n- `http-jest-mock.js` - Mock HTTP Requests with jest.mock in React Component\n  Tests\n- `mock-component.js` - Mock react-transition-group in React Component Tests\n  with jest.mock\n- `error-boundaries.js` - Test componentDidCatch handler error boundaries with\n  react-testing-library\n- `tdd-markup.js` - Test drive the development of a React Form with\n  react-testing-library\n- `tdd-functionality.js` - TDD the functionality of a React Form with\n  react-testing-library\n- `react-router.js` - Test react-router Provider history object in React\n  Component Tests with createMemoryHistory\n- `redux.js` - Test a redux connected React Component\n- `custom-hook.js` - Test a custom hook\n- `portals.js` - Test React portals\n- `unmounting.js` - Test Unmounting a React Component with react-testing-library\n- `app.js` - Testing the full application.\n\n## How do I start?\n\n1. Fork this project\n\n![Forking the project](https://camo.githubusercontent.com/6f03010c651d060f8b7cfc17da7098c1757c4ead/68747470733a2f2f6669727374636f6e747269627574696f6e732e6769746875622e696f2f6173736574732f526561646d652f666f726b2e706e67)\n\n2. Clone the forked repository\n\n    `git clone https://github.com/user/react-testing` (if you use `git`)\n\n    or\n\n    `gh repo clone https://github.com/user/react-testing` (if you use `gh` cli)\n\n3. Install the dependencies\n\n    `npm install` (if you use `npm`)\n\n    or\n\n    `yarn` (if you use   `yarn`)\n\n4. Start the project\n\n    `npm start` (if you `npm`)\n\n    or\n\n    `yarn start` (if you use `yarn`)\n\n## How to contribute?\n\nSee the [CONTRIBUTING.md](./CONTRIBUTING.md) file to see the step about how to contribute.\n\n---\n\n[LICENSE](./LICENSE)\n\n_Credits: Kent C. Dodds_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesau-morais%2Freact-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fesau-morais%2Freact-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesau-morais%2Freact-testing/lists"}