We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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://private-user-images.githubusercontent.com/50703224/336732431-18b8cdcc-9aac-47e1-b2a8-d91dd510e846.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEzMjc3MTMsIm5iZiI6MTcyMTMyNzQxMywicGF0aCI6Ii81MDcwMzIyNC8zMzY3MzI0MzEtMThiOGNkY2MtOWFhYy00N2UxLWIyYTgtZDkxZGQ1MTBlODQ2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE4VDE4MzAxM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZjOGZlZTk4ZDBhZWIzMTk4NTY5YzViOGE1MWNjOThkMjQxMzQ4MDllNGQ2MmRmODA2N2RmNjllYzM3MjY3ODUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.-QNT1_4ZaqUshmY57Zg3uwiiUZB80kmtdaQZYLL63Qo)
Device:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: