Commit 3a03a76
authored
test(wtr): remove usage of global
* 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 depsTestUtils from hydration tests @W-19098266 (#5489)1 parent 58111d0 commit 3a03a76
File tree
71 files changed
+198
-95
lines changed- packages/@lwc/integration-not-karma
- configs/plugins
- helpers
- test-hydration
- attributes/falsy-mismatch
- context
- errors/already-hydrated
- inner-outer-html
- light-dom/scoped-styles/deduped-scoped-styles
- mismatches
- attrs-compatibility
- attrs-expression
- class-attr
- dynamic-different
- dynamic-empty-in-ssr-null-string-in-client
- dynamic-null-string-in-ssr-empty-in-client
- dynamic-same-different-order-does-not-throw
- empty-string-on-client-nonempty-on-server
- empty-string-on-server-nonempty-on-client
- empty-string
- extra-class-from-client
- extra-class-from-server
- only-present-in-ssr
- same-different-order
- comment-instead-of-text
- different-lwc-inner-html
- display-errors-attrs-class-style
- dynamic-component
- element-instead-of-textNode
- favors-client-side-comment
- favors-client-side-text
- host-mutation-in-connected-callback
- attr-mutated-class-mismatch
- attr
- class-mutated-attr-mismatch
- class
- style
- invalid-number-of-nodes
- foreach
- if-true
- sibling-issue
- style-attr
- computed
- different-priority
- extra-from-client
- extra-from-server
- same-different-order
- empty-string
- empty-on-client-nonempty-on-server
- empty-on-server-nonempty-on-client
- static
- different-priority
- extra-from-client
- extra-from-server
- same-different-order
- text-instead-of-comment
- textNode-instead-of-element
- with-validation-opt-out
- mutate-in-connected-and-render
- no-opt-out
- opt-out-wrong-array
- number-of-child-els
- warnings
- opt-out-array-of-non-strings
- opt-out-false
- opt-out-non-array
- opt-out-null
- stylesheet/host-scope-token/dynamic-render/mismatches
- extra-class-in-client
- extra-class-in-server
- wrong-scoped-template
- wrong-single-class
- test
- accessibility
- non-standard-aria-props
- synthetic-cross-root-aria
- api/freezeTemplate
- component/native-vs-synthetic-lifecycle
- mixed-shadow-mode
- reporting
- shadowSupportModeReporting
- polyfills/aria-properties
- rendering/version-mismatch
- template/directive-lwc-render-mode
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
71 files changed
+198
-95
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
364 | | - | |
365 | 364 | | |
366 | 365 | | |
367 | 366 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
89 | 87 | | |
90 | 88 | | |
91 | 89 | | |
92 | | - | |
93 | 90 | | |
94 | 91 | | |
95 | 92 | | |
| |||
Lines changed: 18 additions & 0 deletions
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | 10 | | |
16 | 11 | | |
17 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | 49 | | |
68 | 50 | | |
69 | 51 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
31 | | - | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
43 | | - | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
9 | | - | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
4 | | - | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
0 commit comments