Skip to content

Commit

Permalink
Add worker thread messaging APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuelsmann committed Nov 29, 2024
1 parent 5a30d1c commit ae54858
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions UI/tests/common/jest.polyfills.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

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, {
Expand All @@ -21,6 +22,8 @@ Object.defineProperties(globalThis, {
Blob: { value: Blob },
Headers: { value: Headers },
FormData: { value: FormData },
MessageChannel: { value: MessageChannel },
MessagePort: { value: MessagePort },
Request: { value: Request, configurable: true },
Response: { value: Response, configurable: true }
});

0 comments on commit ae54858

Please sign in to comment.