Skip to content

Commit

Permalink
keep current default behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Jun 18, 2024
1 parent 185d03e commit 5eaf004
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/testing/puppeteer/puppeteer-declarations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export interface NewE2EPageOptions extends WaitForOptions {
failOnNetworkError?: boolean;
/**
* If set to `true`, Stencil will log failing network requests
* @default true
*/
logFailingNetworkRequests?: boolean;
}
Expand Down
3 changes: 2 additions & 1 deletion src/testing/puppeteer/puppeteer-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ export async function newE2EPage(opts: NewE2EPageOptions = {}): Promise<E2EPage>

const failOnConsoleError = opts.failOnConsoleError === true;
const failOnNetworkError = opts.failOnNetworkError === true;
const logFailingNetworkRequests = opts.logFailingNetworkRequests === true;
const logFailingNetworkRequests =
typeof opts.logFailingNetworkRequests === 'boolean' ? opts.logFailingNetworkRequests : true;

page.on('console', (ev) => {
if (ev.type() === 'error') {
Expand Down

0 comments on commit 5eaf004

Please sign in to comment.