Skip to content
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

Jest is using setTimeout internally from Happy DOM #1057

Closed
capricorn86 opened this issue Sep 12, 2023 · 0 comments · Fixed by #1058
Closed

Jest is using setTimeout internally from Happy DOM #1057

capricorn86 opened this issue Sep 12, 2023 · 0 comments · Fixed by #1058
Assignees
Labels
bug Something isn't working

Comments

@capricorn86
Copy link
Owner

Describe the bug
Jest is using setTimeout from Happy DOM internally for detecting when a test times out. This causes Window.happyDOM.whenAsyncComplete() and Window.happyDOM.cancelAsync to not work as expected.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Device:

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@capricorn86 capricorn86 added the bug Something isn't working label Sep 12, 2023
@capricorn86 capricorn86 self-assigned this Sep 12, 2023
capricorn86 added a commit that referenced this issue Sep 12, 2023
…detecting when a test times out. This causes Window.happyDOM.whenAsyncComplete() and Window.happyDOM.cancelAsync to not work as expected. This is a bug in Jest, but this release adds a temporary fix in "@happy-dom/jest-environment" until Jest has solved it.
capricorn86 added a commit that referenced this issue Sep 12, 2023
…timeout-internally-from-happy-dom

#1057@patch: Jest was using setTimeout from Happy DOM internally for …
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant