Skip to content

Commit

Permalink
docs: mention Jest Puppeteer Preset
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge committed Mar 4, 2018
1 parent 74bf072 commit d9a3f58
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion docs/Puppeteer.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,27 @@ With the [Global Setup/Teardown](Configuration.md#globalsetup-string) and
[Async Test Environment](Configuration.md#testenvironment-string) APIs, Jest can
work smoothly with [puppeteer](https://github.com/GoogleChrome/puppeteer).

## A jest-puppeteer example
## Use Puppeteer Preset

[Jest Puppeteer Preset](https://github.com/smooth-code/jest-puppeteer) provides all required configuration to run your tests using Puppeteer.

1. First install `jest-puppeteer-preset`

```
npm install jest-puppeteer-preset
```

2. Specify preset in your Jest configuration:

```json
{
"preset": "jest-puppeteer-preset"
}
```

See [documentation](https://github.com/smooth-code/jest-puppeteer).

## Custom example

The basic idea is to:

Expand Down

0 comments on commit d9a3f58

Please sign in to comment.