jest-environment-jsdom 29.4.3 → 29.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +0 -9
- package/package.json +8 -8
package/build/index.js
CHANGED
|
@@ -161,15 +161,6 @@ class JSDOMEnvironment {
|
|
|
161
161
|
this.global.removeEventListener('error', this.errorEventListener);
|
|
162
162
|
}
|
|
163
163
|
this.global.close();
|
|
164
|
-
|
|
165
|
-
// Dispose "document" to prevent "load" event from triggering.
|
|
166
|
-
|
|
167
|
-
// Note that this.global.close() will trigger the CustomElement::disconnectedCallback
|
|
168
|
-
// Do not reset the document before CustomElement disconnectedCallback function has finished running,
|
|
169
|
-
// document should be accessible within disconnectedCallback.
|
|
170
|
-
Object.defineProperty(this.global, 'document', {
|
|
171
|
-
value: null
|
|
172
|
-
});
|
|
173
164
|
}
|
|
174
165
|
this.errorEventListener = null;
|
|
175
166
|
// @ts-expect-error: this.global not allowed to be `null`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jest-environment-jsdom",
|
|
3
|
-
"version": "29.
|
|
3
|
+
"version": "29.5.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/facebook/jest.git",
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
"./package.json": "./package.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@jest/environment": "^29.
|
|
21
|
-
"@jest/fake-timers": "^29.
|
|
22
|
-
"@jest/types": "^29.
|
|
20
|
+
"@jest/environment": "^29.5.0",
|
|
21
|
+
"@jest/fake-timers": "^29.5.0",
|
|
22
|
+
"@jest/types": "^29.5.0",
|
|
23
23
|
"@types/jsdom": "^20.0.0",
|
|
24
24
|
"@types/node": "*",
|
|
25
|
-
"jest-mock": "^29.
|
|
26
|
-
"jest-util": "^29.
|
|
25
|
+
"jest-mock": "^29.5.0",
|
|
26
|
+
"jest-util": "^29.5.0",
|
|
27
27
|
"jsdom": "^20.0.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@jest/test-utils": "^29.
|
|
30
|
+
"@jest/test-utils": "^29.5.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"canvas": "^2.5.0"
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "39f3beda6b396665bebffab94e8d7c45be30454c"
|
|
47
47
|
}
|