From 3c56feb4f942a9f691b2d354a06f4d151191634b Mon Sep 17 00:00:00 2001 From: David Ortner Date: Thu, 7 Nov 2024 16:02:26 +0100 Subject: [PATCH] fix(vitest): use fetch() implementation from happy-dom (#6879) --- packages/vitest/src/integrations/env/happy-dom.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vitest/src/integrations/env/happy-dom.ts b/packages/vitest/src/integrations/env/happy-dom.ts index ba7e792c110b..ed883211d1a1 100644 --- a/packages/vitest/src/integrations/env/happy-dom.ts +++ b/packages/vitest/src/integrations/env/happy-dom.ts @@ -64,7 +64,7 @@ export default { const { keys, originals } = populateGlobal(global, win, { bindFunctions: true, // jsdom doesn't support Request and Response, but happy-dom does - additionalKeys: ['Request', 'Response'], + additionalKeys: ['Request', 'Response', 'MessagePort', 'fetch'], }) return {