Open chenxinyanc opened 1 month ago
Describe the bug While there is ErrorEvent provided by happy-dom, there seems to be a lack of PromiseRejectionEvent from window.
ErrorEvent
happy-dom
window
To Reproduce Use the following code in vitest with environment: "happy-dom" as vitest config.
environment: "happy-dom"
console.log(window.ErrorEvent); console.log(window.PromiseRejectionEvent);
Expected behavior I should see both logs to be non-undefined.
Screenshots
[class ErrorEvent extends UIEvent] undefined
Device:
Additional context Add any other context about the problem here.
Describe the bug While there is
ErrorEvent
provided byhappy-dom
, there seems to be a lack of PromiseRejectionEvent fromwindow
.To Reproduce Use the following code in vitest with
environment: "happy-dom"
as vitest config.Expected behavior I should see both logs to be non-undefined.
Screenshots![image](https://github.com/capricorn86/happy-dom/assets/50703224/18b8cdcc-9aac-47e1-b2a8-d91dd510e846)
Device:
Additional context Add any other context about the problem here.