-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
XMLSerializer is not a constructor/is undefined #7537
Comments
You'll need to use custom jsdom environment, like this one, to use that, as jsdom dropped Node 6 in v12 and we can't go with that currently. |
Thanks, @thymikee. |
Is this documented somewhere? |
Yup, search for custom environment on our docs :) |
If anyone else finds this issue, here is the documentation link: https://jestjs.io/docs/en/troubleshooting#compatibility-issues |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
馃悰 Bug Report
While trying to test a class that uses
XMLSerializer
, I get the error 'XMLSerializer is not a constructor' or 'XMLSerializer is undefined'. I havetestEnvironment
set tojsdom
just in case.To Reproduce
Add
new XMLSerializer();
to a test.Expected behavior
XMLSerializer
should work as expected. Support for it was added to jsdom in v13.Link to repl or repo (highly encouraged)
https://repl.it/@ChrisPaton/DarkredShinyOutliers
The text was updated successfully, but these errors were encountered: