├── .all-contributorsrc ├── .gitattributes ├── .github └── workflows │ └── validate.yml ├── .gitignore ├── .gitpod.yml ├── .npmrc ├── .prettierignore ├── .prettierrc ├── .vscode ├── extensions.json └── settings.kcd.json ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── Dockerfile ├── LICENSE.md ├── LIVE_INSTRUCTIONS.md ├── README.md ├── docker-compose.yml ├── jsconfig.json ├── other └── testingjavascript.jpg ├── package.json ├── public ├── _redirects ├── antic-slab.woff2 ├── favicon.ico ├── index.html ├── manifest.json └── mockServiceWorker.js ├── sandbox.config.json ├── scripts ├── diff.js ├── fix-feedback-links ├── pre-commit.js ├── pre-push.js ├── setup.js └── update-deps ├── setup.js └── src ├── __tests__ ├── exercise │ ├── 01.js │ ├── 01.md │ ├── 02.js │ ├── 02.md │ ├── 03.js │ ├── 03.md │ ├── 04.js │ ├── 04.md │ ├── 05.js │ ├── 05.md │ ├── 06.js │ ├── 06.md │ ├── 07.js │ ├── 07.md │ ├── 08.js │ └── 08.md └── final │ ├── 01.extra-1.js │ ├── 01.js │ ├── 02.extra-1.js │ ├── 02.js │ ├── 03.extra-1.js │ ├── 03.js │ ├── 04.extra-1.js │ ├── 04.extra-2.js │ ├── 04.extra-3.js │ ├── 04.extra-4.js │ ├── 04.js │ ├── 05.extra-1.js │ ├── 05.extra-2.js │ ├── 05.extra-3.js │ ├── 05.extra-4.js │ ├── 05.js │ ├── 06.extra-1.js │ ├── 06.extra-2.js │ ├── 06.js │ ├── 07.extra-1.js │ ├── 07.extra-2.js │ ├── 07.extra-3.js │ ├── 07.js │ ├── 08.extra-1.js │ ├── 08.extra-2.js │ ├── 08.extra-3.js │ └── 08.js ├── components ├── counter.js ├── easy-button.js ├── login-submission.js ├── login.js ├── spinner.js ├── theme.js └── use-counter.js ├── examples ├── counter-hook.js ├── counter.js ├── easy-button.js ├── location.js ├── login-submission.js └── login.js ├── index.js ├── setupTests.js ├── styles.css └── test ├── server-handlers.js ├── server.js └── test-utils.js /.all-contributorsrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/.all-contributorsrc -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf 2 | -------------------------------------------------------------------------------- /.github/workflows/validate.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/.github/workflows/validate.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | coverage 4 | build 5 | .idea/ 6 | .eslintcache 7 | -------------------------------------------------------------------------------- /.gitpod.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/.gitpod.yml -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/.npmrc -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | coverage 2 | node_modules 3 | build 4 | other 5 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/.prettierrc -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/.vscode/extensions.json -------------------------------------------------------------------------------- /.vscode/settings.kcd.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/.vscode/settings.kcd.json -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/LICENSE.md -------------------------------------------------------------------------------- /LIVE_INSTRUCTIONS.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/LIVE_INSTRUCTIONS.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/README.md -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /jsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/jsconfig.json -------------------------------------------------------------------------------- /other/testingjavascript.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/other/testingjavascript.jpg -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/package.json -------------------------------------------------------------------------------- /public/_redirects: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/public/_redirects -------------------------------------------------------------------------------- /public/antic-slab.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/public/antic-slab.woff2 -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/public/index.html -------------------------------------------------------------------------------- /public/manifest.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /public/mockServiceWorker.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/public/mockServiceWorker.js -------------------------------------------------------------------------------- /sandbox.config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/sandbox.config.json -------------------------------------------------------------------------------- /scripts/diff.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/scripts/diff.js -------------------------------------------------------------------------------- /scripts/fix-feedback-links: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/scripts/fix-feedback-links -------------------------------------------------------------------------------- /scripts/pre-commit.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/scripts/pre-commit.js -------------------------------------------------------------------------------- /scripts/pre-push.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/scripts/pre-push.js -------------------------------------------------------------------------------- /scripts/setup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/scripts/setup.js -------------------------------------------------------------------------------- /scripts/update-deps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/scripts/update-deps -------------------------------------------------------------------------------- /setup.js: -------------------------------------------------------------------------------- 1 | require('./scripts/setup') 2 | 3 | -------------------------------------------------------------------------------- /src/__tests__/exercise/01.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/exercise/01.js -------------------------------------------------------------------------------- /src/__tests__/exercise/01.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/exercise/01.md -------------------------------------------------------------------------------- /src/__tests__/exercise/02.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/exercise/02.js -------------------------------------------------------------------------------- /src/__tests__/exercise/02.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/exercise/02.md -------------------------------------------------------------------------------- /src/__tests__/exercise/03.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/exercise/03.js -------------------------------------------------------------------------------- /src/__tests__/exercise/03.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/exercise/03.md -------------------------------------------------------------------------------- /src/__tests__/exercise/04.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/exercise/04.js -------------------------------------------------------------------------------- /src/__tests__/exercise/04.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/exercise/04.md -------------------------------------------------------------------------------- /src/__tests__/exercise/05.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/exercise/05.js -------------------------------------------------------------------------------- /src/__tests__/exercise/05.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/exercise/05.md -------------------------------------------------------------------------------- /src/__tests__/exercise/06.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/exercise/06.js -------------------------------------------------------------------------------- /src/__tests__/exercise/06.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/exercise/06.md -------------------------------------------------------------------------------- /src/__tests__/exercise/07.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/exercise/07.js -------------------------------------------------------------------------------- /src/__tests__/exercise/07.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/exercise/07.md -------------------------------------------------------------------------------- /src/__tests__/exercise/08.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/exercise/08.js -------------------------------------------------------------------------------- /src/__tests__/exercise/08.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/exercise/08.md -------------------------------------------------------------------------------- /src/__tests__/final/01.extra-1.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/final/01.extra-1.js -------------------------------------------------------------------------------- /src/__tests__/final/01.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/final/01.js -------------------------------------------------------------------------------- /src/__tests__/final/02.extra-1.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/final/02.extra-1.js -------------------------------------------------------------------------------- /src/__tests__/final/02.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/final/02.js -------------------------------------------------------------------------------- /src/__tests__/final/03.extra-1.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/final/03.extra-1.js -------------------------------------------------------------------------------- /src/__tests__/final/03.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/final/03.js -------------------------------------------------------------------------------- /src/__tests__/final/04.extra-1.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/final/04.extra-1.js -------------------------------------------------------------------------------- /src/__tests__/final/04.extra-2.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/final/04.extra-2.js -------------------------------------------------------------------------------- /src/__tests__/final/04.extra-3.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/final/04.extra-3.js -------------------------------------------------------------------------------- /src/__tests__/final/04.extra-4.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/final/04.extra-4.js -------------------------------------------------------------------------------- /src/__tests__/final/04.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/final/04.js -------------------------------------------------------------------------------- /src/__tests__/final/05.extra-1.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/final/05.extra-1.js -------------------------------------------------------------------------------- /src/__tests__/final/05.extra-2.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/final/05.extra-2.js -------------------------------------------------------------------------------- /src/__tests__/final/05.extra-3.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/final/05.extra-3.js -------------------------------------------------------------------------------- /src/__tests__/final/05.extra-4.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/final/05.extra-4.js -------------------------------------------------------------------------------- /src/__tests__/final/05.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/final/05.js -------------------------------------------------------------------------------- /src/__tests__/final/06.extra-1.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/final/06.extra-1.js -------------------------------------------------------------------------------- /src/__tests__/final/06.extra-2.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/final/06.extra-2.js -------------------------------------------------------------------------------- /src/__tests__/final/06.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/final/06.js -------------------------------------------------------------------------------- /src/__tests__/final/07.extra-1.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/final/07.extra-1.js -------------------------------------------------------------------------------- /src/__tests__/final/07.extra-2.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/final/07.extra-2.js -------------------------------------------------------------------------------- /src/__tests__/final/07.extra-3.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/final/07.extra-3.js -------------------------------------------------------------------------------- /src/__tests__/final/07.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/final/07.js -------------------------------------------------------------------------------- /src/__tests__/final/08.extra-1.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/final/08.extra-1.js -------------------------------------------------------------------------------- /src/__tests__/final/08.extra-2.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/final/08.extra-2.js -------------------------------------------------------------------------------- /src/__tests__/final/08.extra-3.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/final/08.extra-3.js -------------------------------------------------------------------------------- /src/__tests__/final/08.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/__tests__/final/08.js -------------------------------------------------------------------------------- /src/components/counter.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/components/counter.js -------------------------------------------------------------------------------- /src/components/easy-button.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/components/easy-button.js -------------------------------------------------------------------------------- /src/components/login-submission.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/components/login-submission.js -------------------------------------------------------------------------------- /src/components/login.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/components/login.js -------------------------------------------------------------------------------- /src/components/spinner.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/components/spinner.js -------------------------------------------------------------------------------- /src/components/theme.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/components/theme.js -------------------------------------------------------------------------------- /src/components/use-counter.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/components/use-counter.js -------------------------------------------------------------------------------- /src/examples/counter-hook.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/examples/counter-hook.js -------------------------------------------------------------------------------- /src/examples/counter.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/examples/counter.js -------------------------------------------------------------------------------- /src/examples/easy-button.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/examples/easy-button.js -------------------------------------------------------------------------------- /src/examples/location.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/examples/location.js -------------------------------------------------------------------------------- /src/examples/login-submission.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/examples/login-submission.js -------------------------------------------------------------------------------- /src/examples/login.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/examples/login.js -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/index.js -------------------------------------------------------------------------------- /src/setupTests.js: -------------------------------------------------------------------------------- 1 | import '@testing-library/jest-dom/extend-expect' 2 | -------------------------------------------------------------------------------- /src/styles.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/styles.css -------------------------------------------------------------------------------- /src/test/server-handlers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/test/server-handlers.js -------------------------------------------------------------------------------- /src/test/server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/test/server.js -------------------------------------------------------------------------------- /src/test/test-utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kentcdodds/testing-react-apps/HEAD/src/test/test-utils.js --------------------------------------------------------------------------------