jest-environment-jsdom 29.4.2 → 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/LICENSE +1 -1
- package/build/index.d.ts +1 -1
- package/build/index.js +1 -10
- package/package.json +8 -8
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/build/index.d.ts
CHANGED
package/build/index.js
CHANGED
|
@@ -33,7 +33,7 @@ function _jestUtil() {
|
|
|
33
33
|
return data;
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
36
|
-
* Copyright (c)
|
|
36
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
37
37
|
*
|
|
38
38
|
* This source code is licensed under the MIT license found in the
|
|
39
39
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -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
|
}
|