Commit 6aae4b0
authored
test(wtr): change jasmine globals to explicit imports @W-19098266 (#5490)
* 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 config1 parent 3a03a76 commit 6aae4b0
File tree
38 files changed
+72
-48
lines changed- packages/@lwc/integration-not-karma
- helpers
- test
- accessibility
- non-standard-aria-props
- synthetic-cross-root-aria
- api
- freezeTemplate
- getComponentDef
- isNodeFromTemplate
- sanitizeHtmlContent
- component
- LightningElement.disconnectedCallback
- native-vs-synthetic-lifecycle
- context
- integrations/locker
- light-dom/scoped-slot/if-block
- lwc-on
- misc/lifecycle-remove-disconnected
- mixed-shadow-mode
- composed-path
- reporting
- shadowSupportModeReporting
- polyfills
- aria-properties
- document-properties
- profiler/mutation-logging
- rendering
- iframe
- inner-outer-html
- sanitize-stylesheet-token
- version-mismatch
- shadow-dom
- Element-properties
- Event-properties
- EventTarget-methods
- MutationObserver
- Node-properties
- signal/protocol
- spread
- static-content
- synthetic-shadow/element-api
- template
- directive-lwc-dom-manual
- directive-lwc-render-mode
38 files changed
+72
-48
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
365 | | - | |
366 | 365 | | |
367 | 366 | | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | 367 | | |
374 | 368 | | |
375 | 369 | | |
| |||
384 | 378 | | |
385 | 379 | | |
386 | 380 | | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | 381 | | |
393 | 382 | | |
394 | 383 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | 17 | | |
46 | 18 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | 19 | | |
57 | 20 | | |
58 | 21 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
0 commit comments