Skip to content

BrowserErrorCaptureEnum

David Ortner edited this page Jan 12, 2024 · 1 revision

Signature

enum BrowserErrorCaptureEnum

Properties

Name Description
tryAndCatch Happy DOM use try and catch when evaluating code, but will not be able to catch all errors and Promise rejections. This will decrease performance as using try and catch makes the execution significally slower. This is the default setting.
processLevel Happy DOM will add an event listener to the Node.js process to catch all errors and Promise rejections. This will not work in Jest and Vitest as it conflicts with their error listeners.
disabled Error capturing is disabled. Errors and Promise rejections will be thrown.
Clone this wiki locally