From 5a68f7af48210c8cf7a783f65a8798bae31f9d8f Mon Sep 17 00:00:00 2001 From: Brandon Date: Tue, 13 Jan 2026 16:07:30 -0500 Subject: [PATCH] add missing polyfils for TextEncoder & TextDecoder --- test.setup.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test.setup.ts b/test.setup.ts index ed4e49d0..ce4bb11b 100644 --- a/test.setup.ts +++ b/test.setup.ts @@ -1,5 +1,7 @@ import { webcrypto } from "crypto"; +import { TextEncoder, TextDecoder } from "util"; +Object.assign(globalThis, { TextEncoder, TextDecoder }); Object.defineProperty(window, "CSS", { value: null }); Object.defineProperty(window, "getComputedStyle", { value: () => {