add missing resetBrowser method types (#37390)

This commit is contained in:
Tylor Shin
2019-08-12 13:43:35 -07:00
committed by Pranav Senthilnathan
parent 01310d2cfc
commit bb547367a5
+12 -1
View File
@@ -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)