-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
Switching from jsdom to happy-dom: TypeError: selector.match is not a function
#1507
Comments
With new happy-dom 15.0.0 I get a different error message, which is maybe a better indication of what's actually going on:
|
Can you provide a link to reproduce it? |
No, as stated in the issue report I don't have an isolated scenario to share unfortunately. However, I found that the Another strange thing is the fact that the exception is reported on |
Thank you for reporting @nocive! 🙂 I believe that the problem should be fixed now. |
Fixed indeed, thank you so much! :-) |
Describe the bug
When switching from jsdom to happy-dom with vitest a
TypeError: selector.match is not a function
happens.To Reproduce
Unfortunately I don't have a minimal reproduction scenario, I understand that this might make it tricky to understand what the problem is, but any pointers would be appreciated.
vitest run
TypeError
which does not occur when using jsdomExpected behavior
Working test suite just like when using jsdom :-)
Additional context
The application is a preact based application.
Vitest configuration is very straightforward:
Test bootstrap code is as follows:
The text was updated successfully, but these errors were encountered: