This repo is for medium articles which explain how to use React Testing Library with TypeScript !
- The Practical Guide to Start React Testing Library with TypeScript.
- Snapshots of Material-UI styled component with React Testing Library and TypeScript.
This repo has several branches for each articles.
- master
- is starting point for The Practical Guide to Start React Testing Library with TypeScript.
- feature/01_MUI_styled_component_test
- is ending point for The Practical Guide to Start React Testing Library with TypeScript.
- is starting point for Snapshots of Material-UI styled component with React Testing Library and TypeScript.
The application is called My Pokemon
. To explain various topics of React Testing Library, the application itself is not super simple.
It has three main features.
- Check Pokedex
- Check pokemon detail information
- Add and remove a pokemon into your list
If you want to learn React Testing Library, I recommend to write actual code.
- Clone this repo
git clone https://github.com/egurinko/react-testing-library-demo.git
- Install all dependencies
cd react-testing-library-demo
yarn
- Start local server
yarn start
- React
- Material-UI
- Redux
- react-router
- React Testing Library
- JEST
- TypeScript
- others (webpack, babel, eslint, prettier, PokéAPI)