Skip to content

BrowserErrorCaptureEnum

David Ortner edited this page Oct 16, 2024 · 2 revisions

Signature

enum BrowserErrorCaptureEnum

Properties

Name Description
tryAndCatch Happy DOM uses 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 slower.
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