jest-environment-node
Advanced tools
Comparing version 13.0.0 to 13.1.0
@@ -19,2 +19,4 @@ /** | ||
const isNaN = global.isNaN; | ||
class NodeEnvironment { | ||
@@ -28,8 +30,10 @@ | ||
vm.createContext(this.global); | ||
global.setTimeout = setTimeout; | ||
global.clearInterval = clearInterval; | ||
global.clearTimeout = clearTimeout; | ||
global.setInterval = setInterval; | ||
global.clearInterval = clearInterval; | ||
global.setTimeout = setTimeout; | ||
global.isNaN = isNaN; | ||
global.ArrayBuffer = ArrayBuffer; | ||
global.JSON = JSON; | ||
global.Promise = Promise; | ||
global.JSON = JSON; | ||
installCommonGlobals(global, config.globals); | ||
@@ -40,2 +44,5 @@ this.fakeTimers = new FakeTimers(global);} | ||
dispose() { | ||
if (this.fakeTimers) { | ||
this.fakeTimers.clearAllTimers();} | ||
this.global = null; | ||
@@ -42,0 +49,0 @@ this.fakeTimers = null;} |
{ | ||
"name": "jest-environment-node", | ||
"version": "13.0.0", | ||
"version": "13.1.0", | ||
"repository": { | ||
@@ -11,3 +11,3 @@ "type": "git", | ||
"dependencies": { | ||
"jest-util": "^13.0.0" | ||
"jest-util": "^13.1.0" | ||
}, | ||
@@ -14,0 +14,0 @@ "jest": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1936
42
Updatedjest-util@^13.1.0