Skip to content

browsertron/jest-puppeteer-example

Repository files navigation

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

About

Fastest way to run Puppeteer with Jest

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published