Answer the question
In order to leave comments, you need to log in
Testing a React Application?
Hello!
I'm new to React, something turns out something doesn't .... not the point. Now I started to deal with React testing, I used jest + enzyme. According to advice from various sources, I don’t use class components, I write on hooks to the maximum.
The problem is that the component testing examples are based on class components, and are not applicable to me, I can’t find anything sensible on this issue.
In the same examples, visual testing was described, according to the type: "the user saw several buttons with such and such inscriptions, clicks on a button with a specific name, the button was pressed."
It seemed to me that testing the application looks a little different ...
I would like to know:
Answer the question
In order to leave comments, you need to log in
Is there really a need to test React if everything can be tested with "eyes"?
what libraries do you use when testing?
perhaps you know sources with examples of testing React based on functional components?
Is there really a need to test React if everything can be tested with "eyes"?
what libraries do you use when testing?
How difficult is it to write a React app/website with TDD?
perhaps you know sources with examples of testing React based on functional components?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question