Skip to content
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

Open
KyroSx opened this issue Feb 12, 2021 · 1 comment · May be fixed by #63
Open

Adding automated tests #54

KyroSx opened this issue Feb 12, 2021 · 1 comment · May be fixed by #63

Comments

@KyroSx
Copy link

KyroSx commented Feb 12, 2021

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?

  • main page flows
  • custom hooks
  • helpers, utils, services
  • important component behaviors
@felipsbreno
Copy link

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

image

Or create a test folder and have all the component tests in it, but in the image above I find it more interesting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants