-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding automated tests #54
Comments
Hi everone, Like to see that they are thinking of adding automated tests to this project. In order to help and start taking my first steps in the open source world I wanted to help in creating some tests. Can the test file be created together with the component folder? Below I used DevCard as an example, in this case we have index.js and styled.js, then I could have a DevCard.spec.js to test this component Or create a test folder and have all the component tests in it, but in the image above I find it more interesting. |
The Reason
Due to the possibility of platform growth, I believe that the addition of automated tests (specs) is very important. Which could be done with React Testing Library (RTL) and Jest.
The addition of specs could help refactoring some code snippets, as well as improving maintenance, in addition to all the various advantages that testing brings. Therefore, with good spec coverage, the code quality would certainly increase.
What should be tested?
The text was updated successfully, but these errors were encountered: