The 5W2H of Unit Testing in a React application
Every software developer, at some point or another, questioned the relevance of Unit Testing and googled "Why should I write unit tests for my application?", "What should my unit tests cover in terms of features?", or "How can I write proper unit tests?". Here at GO, we had the same questions when we wanted to take unit testing to a higher level and I will be taking you through our journey and how we answered these questions. Sit comfortably, take a cup of coffee or tea and let's go! Introduction The term "Unit Testing" is far from being a new terminology in the development industry. Records dating back to the 1950s show that the concepts behind unit testing were already being used, which is quite astounding. Whilst I would be very excited to start this discussion from the first concepts, I want to avoid boring you with too much detail of fundamental theories and proceed directly into answering some common questions. Even if you don't h...