@chealt/jest-puppeteer-mock-preset
v0.14.2
Published
[![npm](https://img.shields.io/npm/v/@chealt/jest-puppeteer-mock-preset.svg)](http://npm.im/@chealt/jest-puppeteer-mock-preset) [![License](https://img.shields.io/npm/l/@chealt/jest-puppeteer-mock-preset.svg)](/LICENSE)
Downloads
67
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.