File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change 38
38
([ #5648 ] ( https://github.com/facebook/jest/pull/5708 ) )
39
39
* ` [docs] ` Add docs on using ` jest.mock(...) `
40
40
([ #5648 ] ( https://github.com/facebook/jest/pull/5648 ) )
41
+ * ` [docs] ` Mention Jest Puppeteer Preset
42
+ ([ #5722 ] ( https://github.com/facebook/jest/pull/5722 ) )
41
43
42
44
## 22.4.2
43
45
Original file line number Diff line number Diff line change @@ -7,7 +7,28 @@ With the [Global Setup/Teardown](Configuration.md#globalsetup-string) and
7
7
[ Async Test Environment] ( Configuration.md#testenvironment-string ) APIs, Jest can
8
8
work smoothly with [ puppeteer] ( https://github.com/GoogleChrome/puppeteer ) .
9
9
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
11
32
12
33
The basic idea is to:
13
34
You can’t perform that action at this time.
0 commit comments