Socket
Socket
Sign inDemoInstall

jest-environment-node

Package Overview
Dependencies
Maintainers
3
Versions
275
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 30.0.0-alpha.2 to 30.0.0-alpha.3

27

build/index.js

@@ -70,2 +70,12 @@ /*!

}
const timerIdToRef = id => ({
id,
ref() {
return this;
},
unref() {
return this;
}
});
const timerRefToId = timer => timer?.id;
class NodeEnvironment {

@@ -142,2 +152,9 @@ context;

(0, _jestUtil().installCommonGlobals)(global, projectConfig.globals);
if ('asyncDispose' in Symbol && !('asyncDispose' in global.Symbol)) {
const globalSymbol = global.Symbol;
// @ts-expect-error - it's readonly - but we have checked above that it's not there
globalSymbol.asyncDispose = globalSymbol.for('nodejs.asyncDispose');
// @ts-expect-error - it's readonly - but we have checked above that it's not there
globalSymbol.dispose = globalSymbol.for('nodejs.dispose');
}

@@ -158,12 +175,2 @@ // Node's error-message stack size is limited at 10, but it's pretty useful

this.moduleMocker = new (_jestMock().ModuleMocker)(global);
const timerIdToRef = id => ({
id,
ref() {
return this;
},
unref() {
return this;
}
});
const timerRefToId = timer => timer?.id;
this.fakeTimers = new (_fakeTimers().LegacyFakeTimers)({

@@ -170,0 +177,0 @@ config: projectConfig,

{
"name": "jest-environment-node",
"version": "30.0.0-alpha.2",
"version": "30.0.0-alpha.3",
"repository": {

@@ -22,11 +22,11 @@ "type": "git",

"dependencies": {
"@jest/environment": "30.0.0-alpha.2",
"@jest/fake-timers": "30.0.0-alpha.2",
"@jest/types": "30.0.0-alpha.2",
"@jest/environment": "30.0.0-alpha.3",
"@jest/fake-timers": "30.0.0-alpha.3",
"@jest/types": "30.0.0-alpha.3",
"@types/node": "*",
"jest-mock": "30.0.0-alpha.2",
"jest-util": "30.0.0-alpha.2"
"jest-mock": "30.0.0-alpha.3",
"jest-util": "30.0.0-alpha.3"
},
"devDependencies": {
"@jest/test-utils": "30.0.0-alpha.2"
"@jest/test-utils": "30.0.0-alpha.3"
},

@@ -39,3 +39,3 @@ "engines": {

},
"gitHead": "c04d13d7abd22e47b0997f6027886aed225c9ce4"
"gitHead": "e267aff33d105399f2134bad7c8f82285104f3da"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc