Unit testing refers to the concept of testing and evaluating the quality of each unit of functionality made available by an implementation—in this case, a Gatsby site. Though Gatsby doesn’t offer a unit testing framework out of the box for efficiency reasons, Gatsby developers can use Jest to power unit testing with a minimal amount of overhead. However, because Gatsby’s build process is slightly unusual when it comes to the sort of JavaScript that Jest deals with, standard Jest implementations need some adjustment to work properly with Gatsby sites.
Unit Testing with Jest
by
Tags:
Leave a Reply