aboutsummaryrefslogtreecommitdiffstats
path: root/jest.polyfills.cjs
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-12-15 18:50:26 +0100
committerArmand Philippot <git@armandphilippot.com>2023-12-15 19:30:57 +0100
commitbc9a120b56494d5502de9619b79594653b8fd6e6 (patch)
tree013a7091d9d3f7af8935b57dad1227c4217d75c9 /jest.polyfills.cjs
parent0f936ec0e7606cb79434d94096b6e113a7ce78eb (diff)
build(deps): bump all dependencies except undici
undici v6 is breaking Jest tests (ReadableStream, structuredClone)
Diffstat (limited to 'jest.polyfills.cjs')
-rw-r--r--jest.polyfills.cjs5
1 files changed, 2 insertions, 3 deletions
diff --git a/jest.polyfills.cjs b/jest.polyfills.cjs
index 4039ab5..4ea3cb9 100644
--- a/jest.polyfills.cjs
+++ b/jest.polyfills.cjs
@@ -19,16 +19,15 @@ Object.defineProperties(globalThis, {
TextEncoder: { value: TextEncoder },
});
-const { Blob } = require('node:buffer');
+const { Blob, File } = require('node:buffer');
const { fetch, Headers, FormData, Request, Response } = require('undici');
Object.defineProperties(globalThis, {
fetch: { value: fetch, writable: true },
Blob: { value: Blob },
+ File: { value: File },
Headers: { value: Headers },
FormData: { value: FormData },
Request: { value: Request },
Response: { value: Response },
});
-
-// cSpell:ignore undici