How to test your JavaScript components

Testing is not always as easy as we want but is really necessary when we write software but is almost equal necessary to understand which parts have to test and how to structure our code.

The first, and most important error when we write Fronted code is to have everything inside the components, let’s see how I recommend structuring things in the projects.