From 7b873aea0c97c80298b12ab97fe37be53fcf33c6 Mon Sep 17 00:00:00 2001 From: Lyon Lu Date: Fri, 18 Oct 2024 03:22:26 +0800 Subject: [PATCH] fix test Signed-off-by: Lyon Lu --- script/test/jest-setup.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/script/test/jest-setup.ts b/script/test/jest-setup.ts index 7b0828bfa..9e7e2d759 100644 --- a/script/test/jest-setup.ts +++ b/script/test/jest-setup.ts @@ -1 +1,5 @@ import '@testing-library/jest-dom'; + +import { TextEncoder, TextDecoder } from 'util'; + +Object.assign(global, { TextDecoder, TextEncoder });