-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Support JSDOM #3554
Comments
Hijacking this to serve as a tracking issue for JSDOM support. Currently this is blocked on |
I’d like to add that JSDOM support would not only enhance testing capabilities but also benefit applications that use JSDOM to convert XML data into a queryable DOM. Are there any plans to prioritize this in the short term? |
This comment has been minimized.
This comment has been minimized.
You are a hero @Jarred-Sumner |
Truly a god among men Jarred: |
What is the problem this feature would solve?
Currently DOM testing can be achieved, albeit through a third party library, while this is fine it'd be great if we can standardise this to some extent similar to Vite / Vitest's approach, by making this an easily configurable option.
What is the feature you are proposing to solve the problem?
For tests, I believe the DOM should automatically be added in where for instance the
tsconfig.json
containsDOM
in thelib
field, or alternatively a configuration option inbunfig.toml
. This could also additionally be used to enable DOM matchers (related to #1825).JSDOM is the obvious candidate, but other alternatives could be considered here, such as happy-dom. Although from my (limited) understanding, JSDOM remains prevalent with many testing libraries out there.
Related to #198 and #1825
What alternatives have you considered?
N/A
The text was updated successfully, but these errors were encountered: