-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
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
Latest vitest and happy-dom with useFakeTimers - Test runner is stuck forever #4951
Comments
This seem to be related to
|
I have found the issue and will soon have a fix in Happy DOM. Task capricorn86/happy-dom#1210 created. |
@aversini this has been fixed now in the latest version of Happy DOM: |
@capricorn86 the issue is indeed gone with your recent fix, thanks for the speedy attention and the amazing work you do on Happy DOM ✨ |
Thank you @aversini! |
Describe the bug
Test runner is stuck with the most recent versions of both Vitest (1.2.x) and HappyDom (13.x). If one of the version is reduced (Vitest to 1.1.3 or HappyDom to 12.x), then the test is running fine.
Reproduction
Repo to reproduce the issue: https://stackblitz.com/edit/vitest-dev-vitest-bhbpda?file=src%2Findex.ts
This issue may have been introduced by this recent PR: #4931
I tried to play around with this PR, and by just changing this line,
from
to
it does lift the block... however win.happyDOM.abort returns a Promise, so it does not seem right.
cc @capricorn86
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: