In this article let’s take a look at writing unit tests for your Js code. Before getting started on writing unit tests for your code let's take a look at what are the types of tests we have and the importance of each type.
As developers, we all know we should write tests for our code whether you are working on the frontend or backend. In this article let’s take a look at writing unit tests for your Js code. Before getting started on writing unit tests for your code let's take a look at what are the types of tests we have and the importance of each type.
Before we jump into unit testing specifics, let’s do a quick run-through of the different types of tests. It might be confusing because sometimes the line between them is quite thin.
Just as the word explains, unit tests only test a single part of your implementation. No dependencies or integrations, no framework specifics.