A Jest plugin for creating screenshots of React components with a little help of Puppeteer
"preset"
insteadRemove old hooks from your project configuration and use a "preset"
instead:
jest.config.json
:
{
- "testEnvironment": "jest-puppe-shots/lib/node-environment.js",
- "globalSetup": "jest-puppe-shots/lib/global-setup.js",
- "globalTeardown": "jest-puppe-shots/lib/global-teardown.js"
+ "preset": "jest-puppe-shots-preset"
}
or
jest.config.js
:
{
- testEnvironment: 'jest-puppe-shots/lib/node-environment.js',
- globalSetup: 'jest-puppe-shots/lib/global-setup.js',
- globalTeardown: "jest-puppe-shots/lib/global-teardown.js'
+ preset: 'jest-puppe-shots-preset'
}