jest-environment-jsdom
Advanced tools
Comparing version 29.5.0 to 29.6.0
@@ -27,2 +27,3 @@ /** | ||
customExportConditions: string[]; | ||
private _configuredExportConditions?; | ||
constructor(config: JestEnvironmentConfig, context: EnvironmentContext); | ||
@@ -29,0 +30,0 @@ setup(): Promise<void>; |
@@ -42,2 +42,4 @@ 'use strict'; | ||
// The `Window` interface does not have an `Error.stackTraceLimit` property, but | ||
// `JSDOMEnvironment` assumes it is there. | ||
function isString(value) { | ||
@@ -54,2 +56,3 @@ return typeof value === 'string'; | ||
customExportConditions = ['browser']; | ||
_configuredExportConditions; | ||
constructor(config, context) { | ||
@@ -129,3 +132,3 @@ const {projectConfig} = config; | ||
) { | ||
this.customExportConditions = customExportConditions; | ||
this._configuredExportConditions = customExportConditions; | ||
} else { | ||
@@ -176,3 +179,3 @@ throw new Error( | ||
exportConditions() { | ||
return this.customExportConditions; | ||
return this._configuredExportConditions ?? this.customExportConditions; | ||
} | ||
@@ -179,0 +182,0 @@ getVmContext() { |
{ | ||
"name": "jest-environment-jsdom", | ||
"version": "29.5.0", | ||
"version": "29.6.0", | ||
"repository": { | ||
@@ -20,13 +20,13 @@ "type": "git", | ||
"dependencies": { | ||
"@jest/environment": "^29.5.0", | ||
"@jest/fake-timers": "^29.5.0", | ||
"@jest/types": "^29.5.0", | ||
"@jest/environment": "^29.6.0", | ||
"@jest/fake-timers": "^29.6.0", | ||
"@jest/types": "^29.6.0", | ||
"@types/jsdom": "^20.0.0", | ||
"@types/node": "*", | ||
"jest-mock": "^29.5.0", | ||
"jest-util": "^29.5.0", | ||
"jest-mock": "^29.6.0", | ||
"jest-util": "^29.6.0", | ||
"jsdom": "^20.0.0" | ||
}, | ||
"devDependencies": { | ||
"@jest/test-utils": "^29.5.0" | ||
"@jest/test-utils": "^29.6.0" | ||
}, | ||
@@ -47,3 +47,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "39f3beda6b396665bebffab94e8d7c45be30454c" | ||
"gitHead": "c1e5b8a38ef54bb138409f89831942ebf6a7a67e" | ||
} |
9213
219
+ Addedreact-is@18.2.0(transitive)
- Removedreact-is@18.3.1(transitive)
Updated@jest/environment@^29.6.0
Updated@jest/fake-timers@^29.6.0
Updated@jest/types@^29.6.0
Updatedjest-mock@^29.6.0
Updatedjest-util@^29.6.0