mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
add missing resetBrowser method types (#37390)
This commit is contained in:
committed by
Pranav Senthilnathan
parent
01310d2cfc
commit
bb547367a5
+12
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for jest-environment-puppeteer 4.0
|
||||
// Type definitions for jest-environment-puppeteer 4.3
|
||||
// Project: https://github.com/smooth-code/jest-puppeteer/tree/master/packages/jest-environment-puppeteer
|
||||
// Definitions by: Josh Goldberg <https://github.com/joshuakgoldberg>
|
||||
// Ifiok Jr. <https://github.com/ifiokjr>
|
||||
@@ -19,6 +19,17 @@ interface JestPuppeteer {
|
||||
*/
|
||||
resetPage(): Promise<void>;
|
||||
|
||||
/**
|
||||
* Reset global.browser
|
||||
*
|
||||
* ```ts
|
||||
* beforeEach(async () => {
|
||||
* await jestPuppeteer.resetBrowser()
|
||||
* })
|
||||
* ```
|
||||
*/
|
||||
resetBrowser(): Promise<void>;
|
||||
|
||||
/**
|
||||
* Suspends test execution and gives you opportunity to see what's going on in the browser
|
||||
* - Jest is suspended (no timeout)
|
||||
|
||||
Reference in New Issue
Block a user