jest-puppeteer
jest-puppeteer copied to clipboard
[Deprecated] Headless Chrome (Puppeteer) Environment Wrapper for Jest -- see
jest-puppeteer
Headless Chrome (Puppeteer) Environment Wrapper for Jest
It's basically a wrapper of Puppeteer environment for Jest.
First it launches puppeteer and keep the browserWSEndpoint at global.browserWSEndpoint.
Then it run Jest tests.
Each test case can have their puppeteer instance connect to the browser via global.browserWSEndpoint and teardown when finished.
Finally, it teardowns the browser instance via a custom Jest result processor.
Installation
Note: This wrapper depends on the Async Test Environment API in [email protected]
npm install -D [email protected] puppeteer jest-puppeteer
or
yarn add --dev [email protected] puppeteer jest-puppeteer
Usage
see example
License
MIT