Skip to content

Commit

Permalink
Drop performance polyfill, no longer necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed Aug 7, 2024
1 parent e0337a6 commit 17897ba
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions client/tests/jest/jest.polyfills.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,12 @@

// https://mswjs.io/docs/migrations/1.x-to-2.x#frequent-issues

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 },
});
Expand Down

0 comments on commit 17897ba

Please sign in to comment.