summaryrefslogtreecommitdiffstatshomepage
path: root/webui/src/setupTests.js
diff options
context:
space:
mode:
Diffstat (limited to 'webui/src/setupTests.js')
-rw-r--r--webui/src/setupTests.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/webui/src/setupTests.js b/webui/src/setupTests.js
new file mode 100644
index 000000000..012e25a15
--- /dev/null
+++ b/webui/src/setupTests.js
@@ -0,0 +1,6 @@
+import { TextEncoder } from 'util';
+
+// jsdom, used to run tests, doesn't support text-encoder
+// https://github.com/remix-run/react-router/issues/12363
+
+global.TextEncoder = TextEncoder;