@chealt/jest-puppeteer-mock-preset

0.14.2 • Public • Published

npm License

@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.

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @chealt/jest-puppeteer-mock-preset

    Weekly Downloads

    2

    Version

    0.14.2

    License

    MIT

    Unpacked Size

    2.88 kB

    Total Files

    4

    Last publish

    Collaborators

    • chealt