Skip to content

Commit

Permalink
Ignore istanbul for workaround to flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
yhatt committed Oct 18, 2020
1 parent 19788c5 commit f97f650
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export class Preview extends TypedEventEmitter<Preview.Events> {
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
}
},
Expand Down

0 comments on commit f97f650

Please sign in to comment.