Jest Snapshot Testing for React Components(An Honest Assessment)

Michael Mangialardi
10 min readMay 28, 2020

What Are We Testing?

Jest snapshot testing is primarily used for testing the rendered output of React components.

The rendered output is ultimately the element(s) that render in the DOM:

--

--