New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

jest-environment-node

Package Overview
Dependencies
Maintainers
4
Versions
276
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-environment-node - npm Package Compare versions

Comparing version

to
14.2.0-alpha.ca8bfb6e

27

build/index.js

@@ -30,2 +30,3 @@ /**

vm.createContext(this.global);
global.global = global;
global.clearInterval = clearInterval;

@@ -40,28 +41,28 @@ global.clearTimeout = clearTimeout;

installCommonGlobals(global, config.globals);
this.fakeTimers = new FakeTimers(global);}
this.fakeTimers = new FakeTimers(global);
}
dispose() {
if (this.fakeTimers) {
this.fakeTimers.dispose();}
this.fakeTimers.dispose();
}
this.global = null;
this.fakeTimers = null;}
this.fakeTimers = null;
}
runScript(script) {
if (this.global) {
return script.runInContext(this.global);}
return script.runInContext(this.global);
}
return null;
}
return null;}
runWithRealTimers(callback) {
if (this.global && this.fakeTimers) {
this.fakeTimers.runWithRealTimers(callback);}}}
this.fakeTimers.runWithRealTimers(callback);
}
}}
module.exports = NodeEnvironment;
{
"name": "jest-environment-node",
"version": "14.0.0",
"version": "14.2.0-alpha.ca8bfb6e",
"repository": {

@@ -11,9 +11,4 @@ "type": "git",

"dependencies": {
"jest-util": "^14.0.0"
"jest-util": "^14.2.0-alpha.ca8bfb6e"
},
"jest": {
"rootDir": "./src",
"scriptPreprocessor": "../../babel-jest",
"testEnvironment": "node"
},
"scripts": {

@@ -20,0 +15,0 @@ "test": "../../packages/jest-cli/bin/jest.js"