-
Notifications
You must be signed in to change notification settings - Fork 189
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
Test Failure on master: TypeError: Cannot read property 'fetch' of null in test/sanitize-html.test.js #343
Comments
cc @miggs125, who probably knows the most about JSDOM among us. I suspect that not having a proper document is causing issues here, using a fragment like this. But I could be wrong. It seems odd to me that DOMPurify can pass all their unit tests with JSDOM and we can't. Look at https://github.com/cure53/DOMPurify/blob/dd053931337b457da156530c4db0c1d5c92f66a4/test/jsdom-node.js. |
This test is literally doing what we're doing now, but with what looks like a more robust document setup, https://github.com/cure53/DOMPurify/blob/3bc348bf5882b200e559f65f3fc749733afb812d/test/bootstrap-test-suite.js#L13-L37. |
@humphd could it be that DOMPurify uses "jsdom": "8.x.x" and we're using "jsdom": "15.2.1",? |
@manekenpix DOMPurify works with jsdom v10+ |
perhaps we should try writing the code that is causing the error with the previous version of the jsdom API and determine if that makes any difference |
I'm not clear what started triggering this all of a sudden, but it just failed for me when I merged on master:
cc @shmooey did you ever hit this?
The text was updated successfully, but these errors were encountered: