From f97f65024952cb9c2e78f089bcb9b72631c56c22 Mon Sep 17 00:00:00 2001 From: Yuki Hattori Date: Sun, 18 Oct 2020 15:38:09 +0900 Subject: [PATCH] Ignore istanbul for workaround to flaky test --- src/preview.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/preview.ts b/src/preview.ts index 038f9c88..0144bf71 100644 --- a/src/preview.ts +++ b/src/preview.ts @@ -78,6 +78,7 @@ export class Preview extends TypedEventEmitter { return await page.close() } catch (e) { // Ignore raising error if a target page has already close + /* istanbul ignore next */ if (!e.message.includes('Target closed.')) throw e } },