diff --git a/scripts/project.json b/scripts/project.json index 7385b674a..2ed560b4d 100644 --- a/scripts/project.json +++ b/scripts/project.json @@ -29,6 +29,7 @@ "moment", "superagent", "@sanity/diff-match-patch", - "fflate" + "fflate", + "jsdom-global" ] } diff --git a/tests/html/safeHTML.test.js b/tests/html/safeHTML.test.js index c6ccb8407..2223e476e 100644 --- a/tests/html/safeHTML.test.js +++ b/tests/html/safeHTML.test.js @@ -1,5 +1,4 @@ -require('jsdom-global')(); - +import 'jsdom-global'; import { safeHTML } from '../../client/homebrew/brewRenderer/safeHTML'; test('Exit if no document', function() {