@chealt/jest-puppeteer-mock-preset
v0.14.2
Published
[](http://npm.im/@chealt/jest-puppeteer-mock-preset) [](/LICENSE)
Downloads
110
Readme
@chealt/jest-puppeteer-mock-preset
Jest preset configuration for using the @chealt/jest-mock-environment to record and replay requests and responses during a test execution using Puppeteer.
Install
NPM
npm install @chealt/jest-puppeteer-mock-preset puppeteerYarn
yarn add @chealt/jest-puppeteer-mock-preset puppeteerUsage
Update your Jest config with
{
"preset": "@chealt/jest-puppeteer-mock-preset"
}See additional environment options in the mock environment README.
See a more detailed example in the Jest Mock example package.
