jest-puppe-shots-preset

0.7.0 • Public • Published

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'
}

Package Sidebar

Install

npm i jest-puppe-shots-preset

Weekly Downloads

1

Version

0.7.0

License

MIT

Unpacked Size

4.66 kB

Total Files

4

Last publish

Collaborators

  • macku