Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 774 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 774 Bytes

jest-puppeteer-example

This repo shows the fastest way to run Puppeteer with Jest

Usage

git clone [email protected]:browsertron/jest-puppeteer-example.git
cd jest-puppeteer-example
npm install

# Run your tests locally
npm test

Configuration

To create large test suites, we generate tests. The template __tests__/puppeteer.template.js has one template parameter {{num}}. After you modify the template, run npm run generate to regenerate the tests. To change the number of tests, modify the puppeteer_tests attribute of package.json.

An instance of the todomvc server is started before each run. You can change jest-puppeteer.config.js if you'd like to start a server a different way.

License

MIT