diff --git a/package.json b/package.json index 0eeea9133..75efa3664 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,6 @@ "build/*" ], "jest": { - "testEnvironment": "jsdom", "testTimeout": 30000, "modulePaths": [ "node_modules", diff --git a/tests/html/safeHTML.test.js b/tests/html/safeHTML.test.js index 168154fbe..d1bb2b539 100644 --- a/tests/html/safeHTML.test.js +++ b/tests/html/safeHTML.test.js @@ -1,3 +1,6 @@ +import jsdomGlobal from 'jsdom-global'; +jsdomGlobal(); + import { safeHTML } from '../../client/homebrew/brewRenderer/safeHTML'; test('Exit if no document', function() {