diff --git a/vitest.setup.ts b/vitest.setup.ts index b2e7e916d..3f1ace5b6 100644 --- a/vitest.setup.ts +++ b/vitest.setup.ts @@ -1,3 +1,4 @@ +import { Blob } from 'node:buffer'; import { expect, afterEach } from 'vitest'; import { cleanup } from '@testing-library/react'; import matchers from '@testing-library/jest-dom/matchers'; @@ -8,3 +9,5 @@ expect.extend(matchers); afterEach(() => { cleanup(); }); + +globalThis.Blob = Blob as unknown as typeof globalThis.Blob;