https://github.com/yei-linux/gamerepeated
https://github.com/yei-linux/gamerepeated
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/yei-linux/gamerepeated
- Owner: Yei-Linux
- Created: 2022-05-29T01:30:18.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-06-03T18:57:44.000Z (about 3 years ago)
- Last Synced: 2025-01-19T08:35:52.249Z (5 months ago)
- Language: JavaScript
- Size: 1020 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SUMMARY ABOUT UNIT TEST WITH REACT TESTING LYBRARY
## 1. TESTING REACTDOM AND SMALL COMPONENTS
- Main concepts and setup jest with rtl
- Jest
- RTL
- JestConfig and eslint
- Running tests
- Setup Jest and extends
- Project Structure
- Describe , test(it) , done, after all , after each , before all , before each
- Render, screen , matchers
- FireEvent vs UserEvent
- Snapshots
- Good practices## 2. TESTING CONTEXT CONNECTED COMPONENTS AND REDUX
- Act
- WaitFor
- Mocks context
- rerender
- Testing reducers with context
- Testing reducers with redux store## 3. TESTING REACT HOOKS AND API CONNECTED COMPONENTS(FETCH AND AXIOS)
- renderHook
- jest.fn and returnValues on callbacks
- jest.spyOn
- jest.mock with modules
- mocks
- mock resolved value
- mock resolved value once## 4. TESTING REACT ROUTER COMPONENTS
- test react router
- coverage
- sonarqube