You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/jest-environment-puppeteer/README.md
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -87,6 +87,16 @@ beforeEach(async () => {
87
87
})
88
88
```
89
89
90
+
### `global.jestPuppeteer.resetBrowser()`
91
+
92
+
Reset global.browser, global.context, and global.page
93
+
94
+
```js
95
+
beforeEach(async () => {
96
+
awaitjestPuppeteer.resetBrowser()
97
+
})
98
+
```
99
+
90
100
### `jest-puppeteer.config.js`
91
101
92
102
You can specify a `jest-puppeteer.config.js` at the root of the project or define a custom path using `JEST_PUPPETEER_CONFIG` environment variable. It should export a config object or a Promise for a config object.
0 commit comments