Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arpit078/react-testing
https://github.com/arpit078/react-testing
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/arpit078/react-testing
- Owner: Arpit078
- Created: 2024-02-02T14:23:30.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-02-22T09:31:40.000Z (9 months ago)
- Last Synced: 2024-10-11T03:44:18.674Z (about 1 month ago)
- Language: JavaScript
- Size: 327 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# About Tests.
Three tests are written for three components 1 for each. All the tests are in the same directory as of the
component.
## main.test.js -> Test if a user can write 10,000 todos.
1. Unit test.
2. Tests if the webpage is able to handle 10,000 and more to do items.
## item.test.js ->Test if cross button when clicked removes the item from the dom.
1. Unit test.
2. Tests if the delete button is functioning properly.
3. It is written with the thought in mind that while editing the item component, The programmer may break the delete todo function.
## input.test.js -> Test if the input element is accepting text and onSubmit function is working properly.
1. Unit test
2. It tests if the input box is able to accept text input.
3. It is written with the thought in mind that while editing the input component, The programmer may disable the text input functionality or break the submit functionality.
## To run tests
```
npm run test
```