From 82262e4d7dee44b21253820a981a0fdede9e5b5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Mon, 9 Oct 2023 10:49:23 +0200 Subject: [PATCH] encoding too, are ya MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fredrik Adelöw --- plugins/api-docs/src/setupTests.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/api-docs/src/setupTests.ts b/plugins/api-docs/src/setupTests.ts index a41fe2eeb4..9bcfe5e887 100644 --- a/plugins/api-docs/src/setupTests.ts +++ b/plugins/api-docs/src/setupTests.ts @@ -16,6 +16,10 @@ import '@testing-library/jest-dom'; +Object.defineProperty(global, 'TextEncoder', { + value: require('util').TextEncoder, +}); + Object.defineProperty(global, 'TextDecoder', { value: require('util').TextDecoder, });