From 1ec47e14ad01779a60a132d1935988f0037da416 Mon Sep 17 00:00:00 2001 From: Uri Shaked Date: Thu, 16 Jul 2020 22:25:32 +0300 Subject: test: fix broken test on node 10.x --- jsdom-workaround.js | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 jsdom-workaround.js (limited to 'jsdom-workaround.js') diff --git a/jsdom-workaround.js b/jsdom-workaround.js new file mode 100644 index 0000000..63e15a8 --- /dev/null +++ b/jsdom-workaround.js @@ -0,0 +1,4 @@ +// Workaround for jsdom issue: https://github.com/jsdom/jsdom/issues/2961 +if (typeof globalThis === 'undefined') { + global.globalThis = global; +} -- cgit v1.2.3