Something that probably all programmers do every day is make mistakes (break things), and this happens more frequently as the complexity of our applications grows. The way we prevent this from happening and affecting the business is by writing tests.
The first thing we need to start implementing tests in any project is to install the right tool. In my case, I've chosen Jest, and today we're going to see how to install and configure it.
Something we can probably all agree on is that a fundamental part of building software is testing. A product that goes to production without tests is risky, but how do you know if the tests you're writing are actually good tests?
One of the most useful programming principles is KISS (Keep It Simple, Stupid), but keeping things simple is not always easy. So today we will look at how to create functions that follow this philosophy.