jest-puppe-shots-preset

A Jest plugin for creating screenshots of React components with a help of Puppeteer

Usage no npm install needed!

<script type="module">
  import jestPuppeShotsPreset from 'https://cdn.skypack.dev/jest-puppe-shots-preset';
</script>

README

jest-puppe-shots-preset

NPM version node Build Status dependencies Status devDependencies Status peerDependencies Status

A Jest plugin for creating screenshots of React components with a little help of Puppeteer

How it works?

This is the Jest preset for the jest-puppe-shots package.

Check the README to get more information how to use the plugin.

Installation

You can install the plugin using NPM:

npm install jest-puppe-shots-preset --save-dev

or by Yarn:

yarn add jest-puppe-shots-preset --dev

Jest Configuration

Before starting using the jest-puppe-shots-preset you will need to change your Jest configuration file.

Open the jest.config.json file in your project and add additional entry:

{
  "preset": "jest-puppe-shots-preset"
}

If you are are using the jest.config.js file, then instead adjust your configuration like this:

module.exports = {
  // You config goes here

  preset: 'jest-puppe-shots-preset'
}