diff --git a/client/tests/jest/jest.polyfills.js b/client/tests/jest/jest.polyfills.js index d466c17993c4..2f7685ef87d5 100644 --- a/client/tests/jest/jest.polyfills.js +++ b/client/tests/jest/jest.polyfills.js @@ -12,12 +12,15 @@ // https://mswjs.io/docs/migrations/1.x-to-2.x#frequent-issues -const { TextDecoder, TextEncoder } = require("node:util"); +const { performance } = require("node:perf_hooks"); +const { TextDecoder, TextEncoder, ReadableStream } = require("node:util"); const { clearImmediate } = require("node:timers"); Object.defineProperties(globalThis, { TextDecoder: { value: TextDecoder }, TextEncoder: { value: TextEncoder }, + performance: { value: performance }, + ReadableStream: { value: ReadableStream }, clearImmediate: { value: clearImmediate }, });