Skip to content

Commit

Permalink
Clean polyfills inserted by jest-fixed-jsdom
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuelsmann committed Nov 29, 2024
1 parent 143c34a commit 41bb61c
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions UI/tests/common/jest.polyfills.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
/* @format */
/* global globalThis */

const { Blob } = require("node:buffer");
const { fetch, Headers, FormData, Request, Response } = require("undici");

Object.defineProperties(globalThis, {
fetch: { value: fetch, writable: true },
Blob: { value: Blob },
Headers: { value: Headers },
FormData: { value: FormData },
Request: { value: Request, configurable: true },
Response: { value: Response, configurable: true }
});

0 comments on commit 41bb61c

Please sign in to comment.