From 817eb8e5b2f609af70444bb9e810cf7609d48171 Mon Sep 17 00:00:00 2001 From: Andre Wanlin <67169551+awanlin@users.noreply.github.com> Date: Fri, 15 Sep 2023 13:36:00 -0500 Subject: [PATCH] Removed glabl TextEncoder from app Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com> --- packages/app/src/setupTests.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/packages/app/src/setupTests.ts b/packages/app/src/setupTests.ts index d6dc983b17..23fcbe9676 100644 --- a/packages/app/src/setupTests.ts +++ b/packages/app/src/setupTests.ts @@ -19,9 +19,3 @@ // expect(element).toHaveTextContent(/react/i) // learn more: https://github.com/testing-library/jest-dom import '@testing-library/jest-dom'; - -// Do not remove, patching jsdom environment to support TextEncoder, refer to https://github.com/jsdom/jsdom/issues/2524 -// eslint-disable-next-line no-restricted-imports -import { TextEncoder } from 'util'; - -global.TextEncoder = TextEncoder;