jest-puppe-shots-preset
v0.7.0
Published
A Jest plugin for creating screenshots of React components with a help of Puppeteer
Downloads
11
Maintainers
Readme
jest-puppe-shots-preset
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'
}