{"id":13770288,"url":"https://github.com/kentcdodds/react-jest-workshop","last_synced_at":"2025-05-09T03:12:49.160Z","repository":{"id":66052931,"uuid":"67323873","full_name":"kentcdodds/react-jest-workshop","owner":"kentcdodds","description":null,"archived":false,"fork":false,"pushed_at":"2021-01-25T23:17:05.000Z","size":135,"stargazers_count":197,"open_issues_count":3,"forks_count":36,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-05-09T03:12:43.285Z","etag":null,"topics":["kcd-edu"],"latest_commit_sha":null,"homepage":null,"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/kentcdodds.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":"2016-09-04T03:35:08.000Z","updated_at":"2024-11-19T08:22:48.000Z","dependencies_parsed_at":"2023-05-16T06:45:42.335Z","dependency_job_id":null,"html_url":"https://github.com/kentcdodds/react-jest-workshop","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/kentcdodds%2Freact-jest-workshop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentcdodds%2Freact-jest-workshop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentcdodds%2Freact-jest-workshop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentcdodds%2Freact-jest-workshop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kentcdodds","download_url":"https://codeload.github.com/kentcdodds/react-jest-workshop/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253181442,"owners_count":21866994,"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":["kcd-edu"],"created_at":"2024-08-03T17:00:35.963Z","updated_at":"2025-05-09T03:12:49.143Z","avatar_url":"https://github.com/kentcdodds.png","language":"JavaScript","funding_links":[],"categories":["Resources"],"sub_categories":["Debug","Presets"],"readme":"# [React][React] + [Jest][Jest] + [Enzyme][Enzyme] = :heart:\n\n[![slides-badge][slides-badge]][slides]\n[![PRs Welcome][prs-badge]][prs]\n[![Donate][donate-badge]][donate]\n\n\u003ca href=\"https://app.codesponsor.io/link/PKGFLnhDiFvsUA5P4kAXfiPs/kentcdodds/react-jest-workshop\" rel=\"nofollow\"\u003e\u003cimg src=\"https://app.codesponsor.io/embed/PKGFLnhDiFvsUA5P4kAXfiPs/kentcdodds/react-jest-workshop.svg\" style=\"width: 888px; height: 68px;\" alt=\"Sponsor\" /\u003e\u003c/a\u003e\n\nFind slides [here](http://kcd.im/testing-react)\n\nThis is a workshop for learning how to test [React][React] with the [Jest][Jest] testing framework and the\n[Enzyme][Enzyme] testing library.\n\n## Project Setup\n\nThis project assumes you have [NodeJS v6](http://nodejs.org/) or greater installed. It's also recommended to use the\n[`yarn`](https://yarnpkg.com/) client (rather than [npm](https://www.npmjs.com/)). If you'd rather stick with `npm`,\nthat's fine. Just replace `yarn` with `npm` in the instructions below and hope that things don't break 😏.\nYou'll also need a recent version of [git](https://git-scm.com/) installed as well.\n\nWith that, run:\n\n```\ngit clone https://github.com/kentcdodds/react-jest-workshop.git\ncd react-jest-workshop\nyarn run setup\n```\n\nIf the `yarn run setup` script finishes without errors (don't worry about warnings) then you're good to go. Otherwise,\nplease [file an issue](https://help.github.com/articles/creating-an-issue/).\n\n## Testing Instructions\n\nThere are two directories in this project that you should be interested in:\n\n- `exercises`: Where the unfinished tests are (where you should add your tests).\n- `exercises-final`: Where the finished tests are (where you can reference if you get stuck).\n\nThe tests in `exercises` are actually all scaffolded for you. So your goal is to go through and write all the tests. Do this:\n\n1. Run `yarn run watch:test` which will start running the tests in watch mode, meaning that as you save your file, it\nwill automatically re-run your tests so you can quickly see how you're doing.\n2. Choose a file in the `exercises` directory that ends in `.test.js` and implement the tests one-by-one.\n\nGood luck!\n\n# LICENSE\n\nMIT\n\n[React]: https://facebook.github.io/react/\n[Jest]: http://facebook.github.io/jest/\n[Enzyme]: http://airbnb.io/enzyme/\n[slides]: http://kcd.im/react-jest\n[slides-badge]: https://cdn.rawgit.com/kentcdodds/custom-badges/2/badges/slides.svg\n[donate]: http://kcd.im/donate\n[prs-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square\n[prs]: http://makeapullrequest.com\n[donate-badge]: https://img.shields.io/badge/$-support-green.svg?style=flat-square\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkentcdodds%2Freact-jest-workshop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkentcdodds%2Freact-jest-workshop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkentcdodds%2Freact-jest-workshop/lists"}