Part 1: Getting started

This part of the book covers the basics of unit testing.

In chapter 1, I’ll define what a unit is and what “good” unit testing means, and I’ll compare unit testing with integration testing. Then we’ll look at test-driven development and its role in relation to unit testing.

You’ll take a stab at writing your first unit test using Jest (A very common JavaScript test framework) in chapter 2. You’ll get to know Jest’s basic API, how to assert things, and how to execute tests continuously.