jest-environment-node
Advanced tools
Comparing version 30.0.0-alpha.2 to 30.0.0-alpha.3
@@ -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" | ||
} |
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
10245
246
+ Added@jest/environment@30.0.0-alpha.3(transitive)
+ Added@jest/fake-timers@30.0.0-alpha.3(transitive)
+ Added@jest/schemas@30.0.0-alpha.3(transitive)
+ Added@jest/types@30.0.0-alpha.3(transitive)
+ Added@sinclair/typebox@0.32.35(transitive)
+ Addedjest-message-util@30.0.0-alpha.3(transitive)
+ Addedjest-mock@30.0.0-alpha.3(transitive)
+ Addedjest-util@30.0.0-alpha.3(transitive)
+ Addedpretty-format@30.0.0-alpha.3(transitive)
- Removed@jest/environment@30.0.0-alpha.2(transitive)
- Removed@jest/fake-timers@30.0.0-alpha.2(transitive)
- Removed@jest/schemas@30.0.0-alpha.2(transitive)
- Removed@jest/types@30.0.0-alpha.2(transitive)
- Removed@sinclair/typebox@0.31.28(transitive)
- Removedjest-message-util@30.0.0-alpha.2(transitive)
- Removedjest-mock@30.0.0-alpha.2(transitive)
- Removedjest-util@30.0.0-alpha.2(transitive)
- Removedpretty-format@30.0.0-alpha.2(transitive)
Updated@jest/types@30.0.0-alpha.3
Updatedjest-mock@30.0.0-alpha.3
Updatedjest-util@30.0.0-alpha.3