A Jest plugin for creating screenshots of React components with a little help of Puppeteer. A jest-puppy-shots is a Jest plugin that can help you create Visual Regression tests for your React components. If you ever used Enzyme or Snapshots you will love the jest-puppe-shots. The Snapshot testing approach is really awesome but it has one downside: it cannot be used to make visual regression tests of your components. Thanks to the Puppeteer API it's now possible to use the Chromium browser in Jest and create real screenshots of your components.

Features

  • A jest-puppe-shots is a Jest plugin that can help you create Visual Regression tests for your React components
  • If you ever used Enzyme or Snapshots you will love the jest-puppe-shots
  • You can install the plugin using NPM
  • You will have to install jest and react-dom if you don't have them yet
  • After setting up the configuration you can start writing your first integration test that will take screenshots
  • Load external CSS and JS files

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow jest-puppe-shots

jest-puppe-shots Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of jest-puppe-shots!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Visual Regression Testing Tool

Registered

2023-11-08