8000 avoid catch on disconnect (#456) · argos-ci/jest-puppeteer@51b8706 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 51b8706

Browse files
mukalc-spxl
andauthored
avoid catch on disconnect (#456)
Co-authored-by: lcapra <luca.capra@spindox.it>
1 parent 5af4535 commit 51b8706

File tree

1 file changed

+1
-3
lines changed
  • packages/jest-environment-puppeteer/src

1 file changed

+1
-3
lines changed

packages/jest-environment-puppeteer/src/global.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,7 @@ export async function teardown(jestConfig = {}) {
7777
await Promise.all(
7878
browsers.map((browser) => {
7979
if (config.connect) {
80-
return browser.disconnect().catch((e) => {
81-
console.error(`global.js teardown: Error disconnecting browser ${e.stack}`)
82-
})
80+
return browser.disconnect()
8381
}
8482
return browser.close().catch((e) => {
8583
console.error(`global.js teardown: Error closing browser ${e.stack}`)

0 commit comments

Comments
 (0)
0