@pezkuwi/dev-test 0.84.3 → 0.85.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.
Files changed (128) hide show
  1. package/.skip-deno +0 -0
  2. package/README.md +5 -5
  3. package/package.json +9 -199
  4. package/tsconfig.build.json +16 -0
  5. package/tsconfig.build.tsbuildinfo +1 -0
  6. package/tsconfig.spec.json +16 -0
  7. package/tsconfig.spec.tsbuildinfo +1 -0
  8. package/LICENSE +0 -201
  9. package/browser.d.ts +0 -1
  10. package/browser.js +0 -2
  11. package/cjs/browser.d.ts +0 -1
  12. package/cjs/browser.js +0 -4
  13. package/cjs/detectOther.d.ts +0 -2
  14. package/cjs/detectOther.js +0 -3
  15. package/cjs/env/browser.d.ts +0 -313
  16. package/cjs/env/browser.js +0 -98
  17. package/cjs/env/expect.d.ts +0 -297
  18. package/cjs/env/expect.js +0 -213
  19. package/cjs/env/index.d.ts +0 -4
  20. package/cjs/env/index.js +0 -20
  21. package/cjs/env/jest.d.ts +0 -127
  22. package/cjs/env/jest.js +0 -56
  23. package/cjs/env/lifecycle.d.ts +0 -12
  24. package/cjs/env/lifecycle.js +0 -17
  25. package/cjs/env/suite.d.ts +0 -16
  26. package/cjs/env/suite.js +0 -35
  27. package/cjs/index.d.ts +0 -1
  28. package/cjs/index.js +0 -1
  29. package/cjs/node.d.ts +0 -1
  30. package/cjs/node.js +0 -4
  31. package/cjs/package.json +0 -3
  32. package/cjs/packageInfo.d.ts +0 -6
  33. package/cjs/packageInfo.js +0 -4
  34. package/cjs/root.d.ts +0 -2
  35. package/cjs/root.js +0 -6
  36. package/cjs/rootJs/Clazz.d.ts +0 -18
  37. package/cjs/rootJs/Clazz.js +0 -36
  38. package/cjs/rootJs/Jsx.d.ts +0 -5
  39. package/cjs/rootJs/Jsx.js +0 -16
  40. package/cjs/rootJs/JsxChild.d.ts +0 -9
  41. package/cjs/rootJs/JsxChild.js +0 -9
  42. package/cjs/rootJs/augmented.d.ts +0 -8
  43. package/cjs/rootJs/augmented.js +0 -3
  44. package/cjs/rootJs/index.d.ts +0 -19
  45. package/cjs/rootJs/index.js +0 -51
  46. package/cjs/rootTests.d.ts +0 -2
  47. package/cjs/rootTests.js +0 -44
  48. package/cjs/sample.d.ts +0 -1
  49. package/cjs/sample.js +0 -4
  50. package/cjs/types.d.ts +0 -15
  51. package/cjs/types.js +0 -2
  52. package/cjs/util.d.ts +0 -20
  53. package/cjs/util.js +0 -51
  54. package/config/eslint.js +0 -160
  55. package/config/eslint.rules.js +0 -214
  56. package/config/prettier.cjs +0 -22
  57. package/config/rollup.js +0 -113
  58. package/config/tsconfig.json +0 -32
  59. package/config/typedoc.cjs +0 -18
  60. package/detectOther.d.ts +0 -2
  61. package/detectOther.js +0 -1
  62. package/env/browser.d.ts +0 -313
  63. package/env/browser.js +0 -95
  64. package/env/expect.d.ts +0 -297
  65. package/env/expect.js +0 -210
  66. package/env/index.d.ts +0 -4
  67. package/env/index.js +0 -17
  68. package/env/jest.d.ts +0 -127
  69. package/env/jest.js +0 -53
  70. package/env/lifecycle.d.ts +0 -12
  71. package/env/lifecycle.js +0 -14
  72. package/env/suite.d.ts +0 -16
  73. package/env/suite.js +0 -32
  74. package/globals.cjs +0 -4
  75. package/globals.d.cts +0 -1
  76. package/globals.d.ts +0 -32
  77. package/index.d.ts +0 -1
  78. package/index.js +0 -1
  79. package/node.d.ts +0 -1
  80. package/node.js +0 -2
  81. package/packageInfo.d.ts +0 -6
  82. package/packageInfo.js +0 -1
  83. package/root.d.ts +0 -2
  84. package/root.js +0 -2
  85. package/rootJs/Clazz.d.ts +0 -18
  86. package/rootJs/Clazz.js +0 -32
  87. package/rootJs/Jsx.d.ts +0 -5
  88. package/rootJs/Jsx.js +0 -13
  89. package/rootJs/JsxChild.d.ts +0 -9
  90. package/rootJs/JsxChild.js +0 -6
  91. package/rootJs/augmented.d.ts +0 -8
  92. package/rootJs/augmented.js +0 -2
  93. package/rootJs/dynamic.d.mts +0 -8
  94. package/rootJs/dynamic.mjs +0 -13
  95. package/rootJs/index.d.ts +0 -19
  96. package/rootJs/index.js +0 -39
  97. package/rootJs/testJson.json +0 -5
  98. package/rootStatic/kusama.svg +0 -1
  99. package/rootTests.d.ts +0 -2
  100. package/rootTests.js +0 -41
  101. package/scripts/polkadot-ci-ghact-build.mjs +0 -536
  102. package/scripts/polkadot-ci-ghact-docs.mjs +0 -14
  103. package/scripts/polkadot-ci-ghpages-force.mjs +0 -43
  104. package/scripts/polkadot-dev-build-docs.mjs +0 -19
  105. package/scripts/polkadot-dev-build-ts.mjs +0 -1518
  106. package/scripts/polkadot-dev-circular.mjs +0 -29
  107. package/scripts/polkadot-dev-clean-build.mjs +0 -61
  108. package/scripts/polkadot-dev-contrib.mjs +0 -74
  109. package/scripts/polkadot-dev-copy-dir.mjs +0 -44
  110. package/scripts/polkadot-dev-copy-to.mjs +0 -53
  111. package/scripts/polkadot-dev-deno-map.mjs +0 -35
  112. package/scripts/polkadot-dev-run-lint.mjs +0 -40
  113. package/scripts/polkadot-dev-run-node-ts.mjs +0 -9
  114. package/scripts/polkadot-dev-run-test.mjs +0 -163
  115. package/scripts/polkadot-dev-version.mjs +0 -143
  116. package/scripts/polkadot-dev-yarn-only.mjs +0 -11
  117. package/scripts/polkadot-exec-eslint.mjs +0 -7
  118. package/scripts/polkadot-exec-ghpages.mjs +0 -11
  119. package/scripts/polkadot-exec-ghrelease.mjs +0 -7
  120. package/scripts/polkadot-exec-node-test.mjs +0 -368
  121. package/scripts/polkadot-exec-rollup.mjs +0 -7
  122. package/scripts/polkadot-exec-tsc.mjs +0 -7
  123. package/scripts/polkadot-exec-webpack.mjs +0 -7
  124. package/scripts/util.mjs +0 -540
  125. package/types.d.ts +0 -15
  126. package/types.js +0 -1
  127. package/util.d.ts +0 -20
  128. package/util.js +0 -46
package/env/browser.d.ts DELETED
@@ -1,313 +0,0 @@
1
- /**
2
- * Export a very basic JSDom environment - this is just enough so we have
3
- * @testing-environment/react tests passing in this repo
4
- *
5
- * FIXME: This approach is actually _explicitly_ discouraged by JSDOM - when
6
- * using window you should run the tests inside that context, instead of just
7
- * blindly relying on the globals as we do here
8
- */
9
- export declare function browser(): {
10
- HTMLAnchorElement: {
11
- new (): HTMLAnchorElement;
12
- prototype: HTMLAnchorElement;
13
- };
14
- HTMLAreaElement: {
15
- new (): HTMLAreaElement;
16
- prototype: HTMLAreaElement;
17
- };
18
- HTMLAudioElement: {
19
- new (): HTMLAudioElement;
20
- prototype: HTMLAudioElement;
21
- };
22
- HTMLBRElement: {
23
- new (): HTMLBRElement;
24
- prototype: HTMLBRElement;
25
- };
26
- HTMLBaseElement: {
27
- new (): HTMLBaseElement;
28
- prototype: HTMLBaseElement;
29
- };
30
- HTMLBodyElement: {
31
- new (): HTMLBodyElement;
32
- prototype: HTMLBodyElement;
33
- };
34
- HTMLButtonElement: {
35
- new (): HTMLButtonElement;
36
- prototype: HTMLButtonElement;
37
- };
38
- HTMLCanvasElement: {
39
- new (): HTMLCanvasElement;
40
- prototype: HTMLCanvasElement;
41
- };
42
- HTMLDListElement: {
43
- new (): HTMLDListElement;
44
- prototype: HTMLDListElement;
45
- };
46
- HTMLDataElement: {
47
- new (): HTMLDataElement;
48
- prototype: HTMLDataElement;
49
- };
50
- HTMLDataListElement: {
51
- new (): HTMLDataListElement;
52
- prototype: HTMLDataListElement;
53
- };
54
- HTMLDetailsElement: {
55
- new (): HTMLDetailsElement;
56
- prototype: HTMLDetailsElement;
57
- };
58
- HTMLDialogElement: {
59
- new (): HTMLDialogElement;
60
- readonly prototype: HTMLDialogElement;
61
- };
62
- HTMLDirectoryElement: {
63
- new (): HTMLDirectoryElement;
64
- prototype: HTMLDirectoryElement;
65
- };
66
- HTMLDivElement: {
67
- new (): HTMLDivElement;
68
- prototype: HTMLDivElement;
69
- };
70
- HTMLElement: {
71
- new (): HTMLElement;
72
- prototype: HTMLElement;
73
- };
74
- HTMLEmbedElement: {
75
- new (): HTMLEmbedElement;
76
- prototype: HTMLEmbedElement;
77
- };
78
- HTMLFieldSetElement: {
79
- new (): HTMLFieldSetElement;
80
- prototype: HTMLFieldSetElement;
81
- };
82
- HTMLFontElement: {
83
- new (): HTMLFontElement;
84
- prototype: HTMLFontElement;
85
- };
86
- HTMLFormElement: {
87
- new (): HTMLFormElement;
88
- prototype: HTMLFormElement;
89
- };
90
- HTMLFrameElement: {
91
- new (): HTMLFrameElement;
92
- prototype: HTMLFrameElement;
93
- };
94
- HTMLFrameSetElement: {
95
- new (): HTMLFrameSetElement;
96
- prototype: HTMLFrameSetElement;
97
- };
98
- HTMLHRElement: {
99
- new (): HTMLHRElement;
100
- prototype: HTMLHRElement;
101
- };
102
- HTMLHeadElement: {
103
- new (): HTMLHeadElement;
104
- prototype: HTMLHeadElement;
105
- };
106
- HTMLHeadingElement: {
107
- new (): HTMLHeadingElement;
108
- prototype: HTMLHeadingElement;
109
- };
110
- HTMLHtmlElement: {
111
- new (): HTMLHtmlElement;
112
- prototype: HTMLHtmlElement;
113
- };
114
- HTMLIFrameElement: {
115
- new (): HTMLIFrameElement;
116
- prototype: HTMLIFrameElement;
117
- };
118
- HTMLImageElement: {
119
- new (): HTMLImageElement;
120
- prototype: HTMLImageElement;
121
- };
122
- HTMLInputElement: {
123
- new (): HTMLInputElement;
124
- prototype: HTMLInputElement;
125
- };
126
- HTMLLIElement: {
127
- new (): HTMLLIElement;
128
- prototype: HTMLLIElement;
129
- };
130
- HTMLLabelElement: {
131
- new (): HTMLLabelElement;
132
- prototype: HTMLLabelElement;
133
- };
134
- HTMLLegendElement: {
135
- new (): HTMLLegendElement;
136
- prototype: HTMLLegendElement;
137
- };
138
- HTMLLinkElement: {
139
- new (): HTMLLinkElement;
140
- prototype: HTMLLinkElement;
141
- };
142
- HTMLMapElement: {
143
- new (): HTMLMapElement;
144
- prototype: HTMLMapElement;
145
- };
146
- HTMLMarqueeElement: {
147
- new (): HTMLMarqueeElement;
148
- prototype: HTMLMarqueeElement;
149
- };
150
- HTMLMediaElement: {
151
- new (): HTMLMediaElement;
152
- prototype: HTMLMediaElement;
153
- readonly NETWORK_EMPTY: 0;
154
- readonly NETWORK_IDLE: 1;
155
- readonly NETWORK_LOADING: 2;
156
- readonly NETWORK_NO_SOURCE: 3;
157
- readonly HAVE_NOTHING: 0;
158
- readonly HAVE_METADATA: 1;
159
- readonly HAVE_CURRENT_DATA: 2;
160
- readonly HAVE_FUTURE_DATA: 3;
161
- readonly HAVE_ENOUGH_DATA: 4;
162
- };
163
- HTMLMenuElement: {
164
- new (): HTMLMenuElement;
165
- prototype: HTMLMenuElement;
166
- };
167
- HTMLMetaElement: {
168
- new (): HTMLMetaElement;
169
- prototype: HTMLMetaElement;
170
- };
171
- HTMLMeterElement: {
172
- new (): HTMLMeterElement;
173
- prototype: HTMLMeterElement;
174
- };
175
- HTMLModElement: {
176
- new (): HTMLModElement;
177
- prototype: HTMLModElement;
178
- };
179
- HTMLOListElement: {
180
- new (): HTMLOListElement;
181
- prototype: HTMLOListElement;
182
- };
183
- HTMLObjectElement: {
184
- new (): HTMLObjectElement;
185
- prototype: HTMLObjectElement;
186
- };
187
- HTMLOptGroupElement: {
188
- new (): HTMLOptGroupElement;
189
- prototype: HTMLOptGroupElement;
190
- };
191
- HTMLOptionElement: {
192
- new (): HTMLOptionElement;
193
- prototype: HTMLOptionElement;
194
- };
195
- HTMLOutputElement: {
196
- new (): HTMLOutputElement;
197
- prototype: HTMLOutputElement;
198
- };
199
- HTMLParagraphElement: {
200
- new (): HTMLParagraphElement;
201
- prototype: HTMLParagraphElement;
202
- };
203
- HTMLParamElement: {
204
- new (): HTMLParamElement;
205
- prototype: HTMLParamElement;
206
- };
207
- HTMLPictureElement: {
208
- new (): HTMLPictureElement;
209
- prototype: HTMLPictureElement;
210
- };
211
- HTMLPreElement: {
212
- new (): HTMLPreElement;
213
- prototype: HTMLPreElement;
214
- };
215
- HTMLProgressElement: {
216
- new (): HTMLProgressElement;
217
- prototype: HTMLProgressElement;
218
- };
219
- HTMLQuoteElement: {
220
- new (): HTMLQuoteElement;
221
- prototype: HTMLQuoteElement;
222
- };
223
- HTMLScriptElement: {
224
- new (): HTMLScriptElement;
225
- prototype: HTMLScriptElement;
226
- supports(type: string): boolean;
227
- };
228
- HTMLSelectElement: {
229
- new (): HTMLSelectElement;
230
- prototype: HTMLSelectElement;
231
- };
232
- HTMLSlotElement: {
233
- new (): HTMLSlotElement;
234
- prototype: HTMLSlotElement;
235
- };
236
- HTMLSourceElement: {
237
- new (): HTMLSourceElement;
238
- prototype: HTMLSourceElement;
239
- };
240
- HTMLSpanElement: {
241
- new (): HTMLSpanElement;
242
- prototype: HTMLSpanElement;
243
- };
244
- HTMLStyleElement: {
245
- new (): HTMLStyleElement;
246
- prototype: HTMLStyleElement;
247
- };
248
- HTMLTableCaptionElement: {
249
- new (): HTMLTableCaptionElement;
250
- prototype: HTMLTableCaptionElement;
251
- };
252
- HTMLTableCellElement: {
253
- new (): HTMLTableCellElement;
254
- prototype: HTMLTableCellElement;
255
- };
256
- HTMLTableColElement: {
257
- new (): HTMLTableColElement;
258
- prototype: HTMLTableColElement;
259
- };
260
- HTMLTableElement: {
261
- new (): HTMLTableElement;
262
- prototype: HTMLTableElement;
263
- };
264
- HTMLTableRowElement: {
265
- new (): HTMLTableRowElement;
266
- prototype: HTMLTableRowElement;
267
- };
268
- HTMLTableSectionElement: {
269
- new (): HTMLTableSectionElement;
270
- prototype: HTMLTableSectionElement;
271
- };
272
- HTMLTemplateElement: {
273
- new (): HTMLTemplateElement;
274
- prototype: HTMLTemplateElement;
275
- };
276
- HTMLTextAreaElement: {
277
- new (): HTMLTextAreaElement;
278
- prototype: HTMLTextAreaElement;
279
- };
280
- HTMLTimeElement: {
281
- new (): HTMLTimeElement;
282
- prototype: HTMLTimeElement;
283
- };
284
- HTMLTitleElement: {
285
- new (): HTMLTitleElement;
286
- prototype: HTMLTitleElement;
287
- };
288
- HTMLTrackElement: {
289
- new (): HTMLTrackElement;
290
- prototype: HTMLTrackElement;
291
- readonly NONE: 0;
292
- readonly LOADING: 1;
293
- readonly LOADED: 2;
294
- readonly ERROR: 3;
295
- };
296
- HTMLUListElement: {
297
- new (): HTMLUListElement;
298
- prototype: HTMLUListElement;
299
- };
300
- HTMLUnknownElement: {
301
- new (): HTMLUnknownElement;
302
- prototype: HTMLUnknownElement;
303
- };
304
- HTMLVideoElement: {
305
- new (): HTMLVideoElement;
306
- prototype: HTMLVideoElement;
307
- };
308
- crypto: Crypto;
309
- document: Document;
310
- localStorage: Storage;
311
- navigator: Navigator;
312
- window: import("jsdom").DOMWindow;
313
- };
package/env/browser.js DELETED
@@ -1,95 +0,0 @@
1
- import { JSDOM } from 'jsdom';
2
- /**
3
- * Export a very basic JSDom environment - this is just enough so we have
4
- * @testing-environment/react tests passing in this repo
5
- *
6
- * FIXME: This approach is actually _explicitly_ discouraged by JSDOM - when
7
- * using window you should run the tests inside that context, instead of just
8
- * blindly relying on the globals as we do here
9
- */
10
- export function browser() {
11
- const { window } = new JSDOM('', { url: 'http://localhost' });
12
- return {
13
- // All HTML Elements that are defined on the JSDOM window object.
14
- // (we copied as-is from the types definition). We cannot get this
15
- // via Object.keys(window).filter(...) so we have to specify explicitly
16
- HTMLAnchorElement: window.HTMLAnchorElement,
17
- HTMLAreaElement: window.HTMLAreaElement,
18
- HTMLAudioElement: window.HTMLAudioElement,
19
- HTMLBRElement: window.HTMLBRElement,
20
- HTMLBaseElement: window.HTMLBaseElement,
21
- HTMLBodyElement: window.HTMLBodyElement,
22
- HTMLButtonElement: window.HTMLButtonElement,
23
- HTMLCanvasElement: window.HTMLCanvasElement,
24
- HTMLDListElement: window.HTMLDListElement,
25
- HTMLDataElement: window.HTMLDataElement,
26
- HTMLDataListElement: window.HTMLDataListElement,
27
- HTMLDetailsElement: window.HTMLDetailsElement,
28
- HTMLDialogElement: window.HTMLDialogElement,
29
- HTMLDirectoryElement: window.HTMLDirectoryElement,
30
- HTMLDivElement: window.HTMLDivElement,
31
- HTMLElement: window.HTMLElement,
32
- HTMLEmbedElement: window.HTMLEmbedElement,
33
- HTMLFieldSetElement: window.HTMLFieldSetElement,
34
- HTMLFontElement: window.HTMLFontElement,
35
- HTMLFormElement: window.HTMLFormElement,
36
- HTMLFrameElement: window.HTMLFrameElement,
37
- HTMLFrameSetElement: window.HTMLFrameSetElement,
38
- HTMLHRElement: window.HTMLHRElement,
39
- HTMLHeadElement: window.HTMLHeadElement,
40
- HTMLHeadingElement: window.HTMLHeadingElement,
41
- HTMLHtmlElement: window.HTMLHtmlElement,
42
- HTMLIFrameElement: window.HTMLIFrameElement,
43
- HTMLImageElement: window.HTMLImageElement,
44
- HTMLInputElement: window.HTMLInputElement,
45
- HTMLLIElement: window.HTMLLIElement,
46
- HTMLLabelElement: window.HTMLLabelElement,
47
- HTMLLegendElement: window.HTMLLegendElement,
48
- HTMLLinkElement: window.HTMLLinkElement,
49
- HTMLMapElement: window.HTMLMapElement,
50
- HTMLMarqueeElement: window.HTMLMarqueeElement,
51
- HTMLMediaElement: window.HTMLMediaElement,
52
- HTMLMenuElement: window.HTMLMenuElement,
53
- HTMLMetaElement: window.HTMLMetaElement,
54
- HTMLMeterElement: window.HTMLMeterElement,
55
- HTMLModElement: window.HTMLModElement,
56
- HTMLOListElement: window.HTMLOListElement,
57
- HTMLObjectElement: window.HTMLObjectElement,
58
- HTMLOptGroupElement: window.HTMLOptGroupElement,
59
- HTMLOptionElement: window.HTMLOptionElement,
60
- HTMLOutputElement: window.HTMLOutputElement,
61
- HTMLParagraphElement: window.HTMLParagraphElement,
62
- HTMLParamElement: window.HTMLParamElement,
63
- HTMLPictureElement: window.HTMLPictureElement,
64
- HTMLPreElement: window.HTMLPreElement,
65
- HTMLProgressElement: window.HTMLProgressElement,
66
- HTMLQuoteElement: window.HTMLQuoteElement,
67
- HTMLScriptElement: window.HTMLScriptElement,
68
- HTMLSelectElement: window.HTMLSelectElement,
69
- HTMLSlotElement: window.HTMLSlotElement,
70
- HTMLSourceElement: window.HTMLSourceElement,
71
- HTMLSpanElement: window.HTMLSpanElement,
72
- HTMLStyleElement: window.HTMLStyleElement,
73
- HTMLTableCaptionElement: window.HTMLTableCaptionElement,
74
- HTMLTableCellElement: window.HTMLTableCellElement,
75
- HTMLTableColElement: window.HTMLTableColElement,
76
- HTMLTableElement: window.HTMLTableElement,
77
- HTMLTableRowElement: window.HTMLTableRowElement,
78
- HTMLTableSectionElement: window.HTMLTableSectionElement,
79
- HTMLTemplateElement: window.HTMLTemplateElement,
80
- HTMLTextAreaElement: window.HTMLTextAreaElement,
81
- HTMLTimeElement: window.HTMLTimeElement,
82
- HTMLTitleElement: window.HTMLTitleElement,
83
- HTMLTrackElement: window.HTMLTrackElement,
84
- HTMLUListElement: window.HTMLUListElement,
85
- HTMLUnknownElement: window.HTMLUnknownElement,
86
- HTMLVideoElement: window.HTMLVideoElement,
87
- // normal service resumes, the base top-level names
88
- crypto: window.crypto,
89
- document: window.document,
90
- localStorage: window.localStorage,
91
- navigator: window.navigator,
92
- // window...
93
- window
94
- };
95
- }