File tree 2 files changed +26
-1
lines changed
2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 47
47
"format" : " kcd-scripts format" ,
48
48
"install:csb" : " npm install" ,
49
49
"lint" : " kcd-scripts lint" ,
50
+ "postinstall" : " patch-package" ,
50
51
"setup" : " npm install && npm run validate -s" ,
51
52
"test" : " kcd-scripts test" ,
52
53
"test:debug" : " node --inspect-brk ./node_modules/.bin/jest --watch --runInBand" ,
68
69
"lz-string" : " ^1.4.4" ,
69
70
"pretty-format" : " ^27.0.2"
70
71
},
72
+ "overrides" : {
73
+ "jsdom" : " ^21.1.0"
74
+ },
71
75
"devDependencies" : {
72
76
"@testing-library/jest-dom" : " ^5.11.6" ,
73
77
"@types/lz-string" : " ^1.3.34" ,
74
78
"jest-in-case" : " ^1.0.2" ,
75
79
"jest-snapshot-serializer-ansi" : " ^1.0.0" ,
76
80
"jest-watch-select-projects" : " ^2.0.0" ,
77
- "jsdom" : " 20.0 .0" ,
81
+ "jsdom" : " ^21.1 .0" ,
78
82
"kcd-scripts" : " ^13.0.0" ,
83
+ "patch-package" : " ^6.5.1" ,
79
84
"typescript" : " ^4.1.2"
80
85
},
81
86
"eslintConfig" : {
Original file line number Diff line number Diff line change
1
+ diff --git a/node_modules/jest-environment-jsdom/build/index.js b/node_modules/jest-environment-jsdom/build/index.js
2
+ index f2f6731..7fcd5ed 100644
3
+ --- a/node_modules/jest-environment-jsdom/build/index.js
4
+ +++ b/node_modules/jest-environment-jsdom/build/index.js
5
+ @@ -161,15 +161,6 @@ class JSDOMEnvironment {
6
+ this.global.removeEventListener('error', this.errorEventListener);
7
+ }
8
+ this.global.close();
9
+ -
10
+ - // Dispose "document" to prevent "load" event from triggering.
11
+ -
12
+ - // Note that this.global.close() will trigger the CustomElement::disconnectedCallback
13
+ - // Do not reset the document before CustomElement disconnectedCallback function has finished running,
14
+ - // document should be accessible within disconnectedCallback.
15
+ - Object.defineProperty(this.global, 'document', {
16
+ - value: null
17
+ - });
18
+ }
19
+ this.errorEventListener = null;
20
+ // @ts-expect-error: this.global not allowed to be `null`
You can’t perform that action at this time.
0 commit comments