Skip to content

setupConsoleErrorCollection

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/apps/web-e2e/src/utils/test-helpers.ts

Set up console error collection for a page. Call this before navigating to collect errors during the action. Returns a function to get collected errors.

Signature

ts
function setupConsoleErrorCollection(page: Page): { getErrors: () => string[]; cleanup: () => void }

Parameters

NameType
pagePage

Returns: { getErrors: () => string[]; cleanup: () => void }

Was this page helpful?

Download as PDF