Skip to content

Commit

Permalink
fix(vitest): use fetch() implementation from happy-dom (#6879)
Browse files Browse the repository at this point in the history
  • Loading branch information
capricorn86 authored Nov 7, 2024
1 parent 6af73d9 commit 3c56feb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vitest/src/integrations/env/happy-dom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default <Environment>{
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 {
Expand Down

0 comments on commit 3c56feb

Please sign in to comment.