Skip to content

Commit 7bbd1c8

Browse files
authored
Update Puppeteer.md
1 parent 4b3b4aa commit 7bbd1c8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

website/versioned_docs/version-25.x/Puppeteer.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ class PuppeteerEnvironment extends NodeEnvironment {
108108
}
109109

110110
async teardown() {
111+
if (this.global.__BROWSER_GLOBAL__) {
112+
this.global.__BROWSER_GLOBAL__.disconnect();
113+
}
111114
await super.teardown();
112115
}
113116

0 commit comments

Comments
 (0)