@happy-dom/jest-environment
Advanced tools
Comparing version 2.21.0 to 2.22.0
@@ -92,5 +92,2 @@ "use strict"; | ||
JestUtil.installCommonGlobals(this.global, config.globals); | ||
// Removes window.fetch() as it should not be used in a test environment. | ||
delete this.global.fetch; | ||
delete this.global.window['fetch']; | ||
if (options && options.console) { | ||
@@ -97,0 +94,0 @@ this.global.console = options.console; |
{ | ||
"name": "@happy-dom/jest-environment", | ||
"version": "2.21.0", | ||
"version": "2.22.0", | ||
"license": "MIT", | ||
@@ -56,3 +56,3 @@ "homepage": "https://github.com/capricorn86/happy-dom/tree/master/packages/jest-environment", | ||
"@jest/types": "^27.0.2", | ||
"happy-dom": "^2.21.0", | ||
"happy-dom": "^2.22.0", | ||
"jest-mock": "^27.0.3", | ||
@@ -90,3 +90,3 @@ "jest-util": "^27.0.2" | ||
}, | ||
"gitHead": "cf68a99486818304511ab14facadc8a0fad2139a" | ||
"gitHead": "a4e365ed586f2ed3b162840dda883625a0440f63" | ||
} |
@@ -44,6 +44,2 @@ /* eslint-disable filenames/match-exported */ | ||
// Removes window.fetch() as it should not be used in a test environment. | ||
delete this.global.fetch; | ||
delete this.global.window['fetch']; | ||
if (options && options.console) { | ||
@@ -50,0 +46,0 @@ this.global.console = options.console; |
Sorry, the diff of this file is not supported yet
28626
629
Updatedhappy-dom@^2.22.0