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 puppeteer
Yarn
yarn add @chealt/jest-puppeteer-mock-preset puppeteer
Usage
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.