What should we test (ReactJS Components)
▻https://hackernoon.com/what-should-we-test-reactjs-components-647ded674928?source=rss----3a8144
Photo by Artem Sapegin on UnsplashThere are a lot of discussions in the web when we talk about testing. And even more about unit testing. In React.TL;DRThis is going to be a brief summary of what and how should we think about when we test a ReactJS application. More specific, what should we write tests for, when creating #react components for our app. If you want to skip the reading, here you can find shorter version in a few slides.All of the points below are recommended by people smarter than me. I just collected them as a summary of best practices, trying to help my team to decide on the matter. And start using them in our day-to-day work.Do we need unit tests?This is a long time discussion, that has only one right answer. Yes! Tests provide developers with confidence. This confidence (...)