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