diff --git a/UI/tests/common/jest.polyfills.js b/UI/tests/common/jest.polyfills.js index 99c431bc3d..5f88045a59 100644 --- a/UI/tests/common/jest.polyfills.js +++ b/UI/tests/common/jest.polyfills.js @@ -3,9 +3,12 @@ const { TextEncoder, TextDecoder } = require("node:util"); const { ReadableStream, TransformStream } = require("node:stream/web"); +const { MessageChannel, MessagePort } = require("node:worker_threads"); const { performance } = require("node:perf_hooks"); Object.defineProperties(globalThis, { + MessageChannel: { value: MessageChannel }, + MessagePort: { value: MessagePort }, ReadableStream: { value: ReadableStream }, TextDecoder: { value: TextDecoder }, TextEncoder: { value: TextEncoder },