A Beginner’s Guide to Unit-Testing With Jest

Getting started with TDD and writing your own tests

Daniel Sasse
Apr 16 · 8 min read

Unit testing is an integral part of Test-Driven Development (TDD) which is the process of defining the desired actions of a function and what we expect it to do (or not do) before we begin work on the actual function. Approaching software development in this fashion serves a number of purposes: