-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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 for other backCompat settings? #3299
Comments
Jest uses JSDOM to emulate browser environment and it doesn't actually work in real browsers currently. Currently we render nothing as a document, hence the quirk mode. @cpojer any special reason, why we're doing this? changing this.document = require('jsdom').jsdom('<!DOCTYPE html>', {
url: config.testURL,
}); |
@edemaine would you like to send a PR with that fix? |
Duplicate of #2460 |
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. |
According to KaTeX/KaTeX#664 , Jest sets
document.compatMode = 'BackCompat'
and there isn't an option to override. This is not a great choice for modern web apps. Could there be support for modifying this setting in configuration/command line?(I'm coming from the KaTeX development side, so I'm a little lost on the sense in which Jest even has a web browser in it... DOM simulation perhaps? Apologies if this issue is actually farther upstream, or if there already is an option to override...)
The text was updated successfully, but these errors were encountered: