Commit 9e4d8af
test(wtr): remove console spy util (#5512)
* test(wtr): update tests to use relative path to utils
instead of weird fake module
* test(wtr): revert removing TestUtils
* test(wtr): remove useless describe
There's no setup/teardown needed, it's a single test, and WTR provides per-file encapsulation
* test(wtr): replace IIFE script with module import
* test(wtr): clean up SSR execution script
working toward just importing and executing things, but not quite there yet
* test(wtr): always use DISABLE_SYNTHETIC
two env vars for the same goal is unnecessary
* test(wtr): enable all hydration tests
I think the last one was a concurrency related timeout,
which was previously addressed.
* test(wtr): remove side effect from signals helper
helper files shouldn't have side effects; all setup should be in the setup file
* test(wtr): import directly from file, not from barrel exporter
* test(wtr): change bulk export statement to individual exports
* test(wtr): remove unnecessary aria re-export
* test(wtr): fix a few more ARIA util imports
* chore: move comment for nicer aesthetic
* test(wtr): remove unused option
* test(wtr): fix another ARIA util import
* test(wtr): import directly from hooks file rather than utils
* test(wtr): import directly from signals file rather than utils
* test(wtr): import directly from console helper rather than utils
* test(wtr): import directly from constants helper rather than utils
* test(wtr): only import what is needed from LWC
* test(wtr): split lwc:dynamic load helpers into separate file
* test(wtr): avoid relying on global LWC
* test(wtr): remove unnecessary wrapping of hydration test config
* test(wtr): remove test-utils logic from resolveImport
no longer necessary
* test(wtr): move plugin from shared config to only config that uses it
* test(wtr): remove useless guid
all tests are run in isolation
* test(wtr): remove unnecessary test-utils global
* test(wtr): clean up component definition
* test(wtr): change component in test from IIFE to import
* test(wtr): shift logic out of wrapper into static test runner file
we want to keep the generated wrappers as thin as possible
and use regular js files as much as possible
* test(wtr): make test setup/teardown more idiomatic
* test(wtr): clean up module compilation
* chore(wtr): make dependency on @vitest/spy explicit
* test(wtr): remove console suppression
It was originally implemented to suppress distracting warnings in Karma tests,
but WTR's log output is different / managed differently.
* test(wtr): clean up names and comments
* test(wtr): move and rename file
* test(wtr): remove usage of global TestUtils from hydration tests
* test(wtr): remove LWC import from utils
It breaks hydration tests if there's an import from LWC.
* test(wtr): remove unused external deps
* test(wtr): use imports instead of jasmine globals
* chore(eslint): remove unused rule config
* fix: attribute cte syntax in integration tests
* test(wtr): fix case in import
mismatched case passes locally, but causes issues in CI
* test(wtr): re-enable tests that used to fail in CI
they should all work now
* test(wtr): enable browser logs
* test(wtr): name plugins
helpful when debugging
* test(wtr): rename variables and document functions for clarity
* test(wtr): convert promise chains to async/await
* test(wtr): load code from known url, rather than sniffing script tag
* test(wtr): convert LWC from iife to fake cjs
* test(wtr): remove unnecessary wrapping
* test(wtr): data can be data, not a function
* test(wtr): replace `evaluate` with functions that require less wrapping
* test(wtr): only fetch scripts once
* test(wtr): john was here
* test(wtr): add line breaks and vars for clarity
* test(wtr): rename variable
it's just one code blob now, not multiple scripts
* test(wtr): fix param pass through
* test(wtr): more cleanup
* test(wtr): remove outdated comment
* test(wtr): avoid shadowing global var
ensures we never accidentally use the wrong one
* test(wtr): enable custom element registry tests
* test(wtr): hoist function definition
* chore: use vitest spy instead of custom hack
* test(wtr): use vitest spy instead of custom
* test(wtr): convert test to async/await
* test(wtr): use vitest spy instead of custom
* test(wtr): move util into only file that uses it
---------
Co-authored-by: John Hefferman <jhefferman@salesforce.com>1 parent a853060 commit 9e4d8af
File tree
12 files changed
+221
-181
lines changed- packages/@lwc/integration-not-karma
- configs/plugins
- helpers
- test
- api/CustomElementConstructor-getter
- component
- LightningElement.addEventListener
- dynamic-imports
- lwc-on
- regression/invalid-key
- rendering
- side-effects
- slotting
- signal/untrusted
- template/directive-for-each
12 files changed
+221
-181
lines changedLines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 35 | + | |
| 36 | + | |
41 | 37 | | |
42 | 38 | | |
43 | 39 | | |
| |||
85 | 81 | | |
86 | 82 | | |
87 | 83 | | |
| 84 | + | |
88 | 85 | | |
89 | 86 | | |
90 | 87 | | |
| |||
Lines changed: 23 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | | - | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
11 | 33 | | |
12 | 34 | | |
13 | 35 | | |
| |||
This file was deleted.
Lines changed: 23 additions & 33 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
| 74 | + | |
85 | 75 | | |
86 | 76 | | |
87 | 77 | | |
| |||
93 | 83 | | |
94 | 84 | | |
95 | 85 | | |
96 | | - | |
97 | | - | |
98 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
99 | 89 | | |
100 | | - | |
| 90 | + | |
101 | 91 | | |
102 | 92 | | |
103 | 93 | | |
| |||
123 | 113 | | |
124 | 114 | | |
125 | 115 | | |
126 | | - | |
127 | | - | |
128 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
129 | 119 | | |
130 | | - | |
| 120 | + | |
131 | 121 | | |
132 | 122 | | |
133 | 123 | | |
| |||
143 | 133 | | |
144 | 134 | | |
145 | 135 | | |
146 | | - | |
147 | | - | |
148 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
149 | 139 | | |
150 | | - | |
| 140 | + | |
151 | 141 | | |
152 | 142 | | |
153 | 143 | | |
| |||
174 | 164 | | |
175 | 165 | | |
176 | 166 | | |
177 | | - | |
| 167 | + | |
178 | 168 | | |
179 | | - | |
180 | | - | |
181 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
182 | 172 | | |
183 | 173 | | |
184 | 174 | | |
| |||
194 | 184 | | |
195 | 185 | | |
196 | 186 | | |
197 | | - | |
198 | | - | |
199 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
200 | 190 | | |
201 | | - | |
| 191 | + | |
202 | 192 | | |
203 | 193 | | |
204 | 194 | | |
| |||
packages/@lwc/integration-not-karma/test/component/LightningElement.addEventListener/index.spec.js
Lines changed: 8 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 42 | + | |
| 43 | + | |
47 | 44 | | |
| 45 | + | |
| 46 | + | |
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
| |||
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
57 | | - | |
| 56 | + | |
58 | 57 | | |
59 | | - | |
60 | | - | |
61 | | - | |
| 58 | + | |
| 59 | + | |
62 | 60 | | |
63 | 61 | | |
64 | 62 | | |
| |||
Lines changed: 11 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
| 119 | + | |
| 120 | + | |
124 | 121 | | |
| 122 | + | |
125 | 123 | | |
126 | 124 | | |
127 | 125 | | |
| |||
136 | 134 | | |
137 | 135 | | |
138 | 136 | | |
139 | | - | |
| 137 | + | |
140 | 138 | | |
141 | 139 | | |
142 | 140 | | |
| |||
150 | 148 | | |
151 | 149 | | |
152 | 150 | | |
153 | | - | |
| 151 | + | |
154 | 152 | | |
155 | 153 | | |
156 | 154 | | |
| |||
242 | 240 | | |
243 | 241 | | |
244 | 242 | | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
| 243 | + | |
| 244 | + | |
250 | 245 | | |
| 246 | + | |
251 | 247 | | |
252 | 248 | | |
253 | 249 | | |
| |||
262 | 258 | | |
263 | 259 | | |
264 | 260 | | |
265 | | - | |
| 261 | + | |
266 | 262 | | |
267 | 263 | | |
268 | 264 | | |
| |||
276 | 272 | | |
277 | 273 | | |
278 | 274 | | |
279 | | - | |
| 275 | + | |
280 | 276 | | |
281 | 277 | | |
0 commit comments