Skip to content

Commit 3c56feb

Browse files
authored
fix(vitest): use fetch() implementation from happy-dom (#6879)
1 parent 6af73d9 commit 3c56feb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vitest/src/integrations/env/happy-dom.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default <Environment>{
6464
const { keys, originals } = populateGlobal(global, win, {
6565
bindFunctions: true,
6666
// jsdom doesn't support Request and Response, but happy-dom does
67-
additionalKeys: ['Request', 'Response'],
67+
additionalKeys: ['Request', 'Response', 'MessagePort', 'fetch'],
6868
})
6969

7070
return {

0 commit comments

Comments
 (0)