diff options
| author | Armand Philippot <git@armandphilippot.com> | 2023-12-15 18:50:26 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2023-12-15 19:30:57 +0100 |
| commit | bc9a120b56494d5502de9619b79594653b8fd6e6 (patch) | |
| tree | 013a7091d9d3f7af8935b57dad1227c4217d75c9 /jest.polyfills.cjs | |
| parent | 0f936ec0e7606cb79434d94096b6e113a7ce78eb (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.cjs | 5 |
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 |
