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 {