Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ducnguyenhong/unit-test-react
Unit Testing with ReactJS
https://github.com/ducnguyenhong/unit-test-react
jest msw react testing-library typescript
Last synced: 20 days ago
JSON representation
Unit Testing with ReactJS
- Host: GitHub
- URL: https://github.com/ducnguyenhong/unit-test-react
- Owner: ducnguyenhong
- Created: 2024-08-01T09:27:43.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-06T10:05:10.000Z (5 months ago)
- Last Synced: 2024-10-06T04:04:55.095Z (3 months ago)
- Topics: jest, msw, react, testing-library, typescript
- Language: TypeScript
- Homepage:
- Size: 149 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Unit Testing with ReactJS
## Technologies:
- ReactJS, Typescript, Jest, React Testing Library, MSW...
## Test function:
Code: **`src/test-function`**
- Function to calculate sum of 2 numbers
- Function to calculate total amount of order## Test component:
Code: **`src/test-component`**
- Test component has data
- Test component has loading
- Test component empty data
- Test component has error## Usage
**`yarn install`**
**`yarn test`**
## Results
![Test results](/public/results.png 'Test results')