Skip to content

Instantly share code, notes, and snippets.

View Lauricio's full-sized avatar

Lauricio Su Lauricio

  • Crowdbit
  • Bangkok
View GitHub Profile
@Lauricio
Lauricio / visual-regression-testing.md
Created July 8, 2021 03:59 — forked from dferber90/visual-regression-testing.md
Visual Regression Testing in Jest

Visual Regression Testing with Jest

This is a walkthrough of how to set up Visual Regression Testing with Jest for an application created with create-react-app.

The following walkthrough uses React as an example, but the approach should work for any modern frontend library! I assume it can be used with Angular, Vue, Cycle.js and more.

This gist walks you through a create-react-app application as an example of how to set up Visual Regression Testing in Jest using libraries I wrote recently which enable this: jsdom-screenshot, jest-transform-css and jest-transform-file.