Interactive interface for browsing global, full-resolution satellite imagery
Added TextEncoder and TextDecoder to setupJest.js as properties to 'globalThis'.
Jason Hurleye36b4435a6e0
diff --git a/setupJest.js b/setupJest.jsindex 62f02b025..aa32cd75a 100644--- a/setupJest.js+++ b/setupJest.js@@ -1,5 +1,8 @@+const { TextEncoder, TextDecoder } = require('util')const fetchMock = require('jest-fetch-mock')fetchMock.enableMocks()fetchMock.dontMock()+globalThis.TextEncoder = TextEncoder+globalThis.TextDecoder = TextDecoderglobalThis.IS_REACT_ACT_ENVIRONMENT = true;