Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 824cb58

Browse files
committed
docs: mention Jest Puppeteer Preset
1 parent 74bf072 commit 824cb58

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
([#5648](https://github.com/facebook/jest/pull/5708))
3939
* `[docs]` Add docs on using `jest.mock(...)`
4040
([#5648](https://github.com/facebook/jest/pull/5648))
41+
* `[docs]` Mention Jest Puppeteer Preset
42+
([#5722](https://github.com/facebook/jest/pull/5722))
4143

4244
## 22.4.2
4345

docs/Puppeteer.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,28 @@ With the [Global Setup/Teardown](Configuration.md#globalsetup-string) and
77
[Async Test Environment](Configuration.md#testenvironment-string) APIs, Jest can
88
work smoothly with [puppeteer](https://github.com/GoogleChrome/puppeteer).
99

10-
## A jest-puppeteer example
10+
## Use Puppeteer Preset
11+
12+
[Jest Puppeteer Preset](https://github.com/smooth-code/jest-puppeteer) provides
13+
all required configuration to run your tests using Puppeteer.
14+
15+
1. First install `jest-puppeteer-preset`
16+
17+
```
18+
yarn add --dev jest-puppeteer-preset
19+
```
20+
21+
2. Specify preset in your Jest configuration:
22+
23+
```json
24+
{
25+
"preset": "jest-puppeteer-preset"
26+
}
27+
```
28+
29+
See [documentation](https://github.com/smooth-code/jest-puppeteer).
30+
31+
## Custom example
1132

1233
The basic idea is to:
1334

0 commit comments

Comments
 (0)