Category: Jest

What Is Snapshot Testing, and Is It Viable in PHP?

Ah-ha moments are beautiful and rare in programming. Every so often, we’re fortunate enough to discover some trick or facet of a system that forever changes how we think of it. For me, that’s what snapshot testing is. You probably write a lot of PHP code, but today I want to talk about something I learned ...

How to Test React Components Using Jest

This article is by guest author Jack Franklin. SitePoint guest posts aim to bring you engaging content from prominent writers and speakers of the JavaScript community. In this article, we’ll take a look at using Jest — a testing framework maintained by Facebook — to test our ReactJS components. WeR...