Skip to content

Commit 03c4a63

Browse files
committed
test(wtr): use symlinks instead of reaching out of the directory
reaching out breaks wtr
1 parent b43624f commit 03c4a63

File tree

2 files changed

+81
-82
lines changed

2 files changed

+81
-82
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../integration-karma/test

packages/@lwc/integration-not-karma/web-test-runner.config.mjs

Lines changed: 80 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -20,92 +20,90 @@ const env = {
2020
LWC_VERSION,
2121
NODE_ENV: options.NODE_ENV_FOR_TEST || 'development',
2222
};
23-
2423
/** @type {import("@web/test-runner").TestRunnerConfig} */
2524
export default {
2625
files: [
27-
// Using ../integration-karma for now, rather than copying the tests here, because there are
28-
// over 3000 test files and that makes the diff really annoying.
29-
'../integration-karma/test/**/*.spec.js',
26+
// FIXME: These tests are just symlinks to integration-karma for now so the git diff smaller
27+
'test/**/*.spec.js',
3028
// Failing Karma tests that need to be migrated to WTR
31-
'!../integration-karma/test/custom-elements-registry/index.spec.js',
32-
'!../integration-karma/test/spread/index.spec.js',
33-
'!../integration-karma/test/static-content/index.spec.js',
34-
'!../integration-karma/test/wire/reactive-params.spec.js',
35-
'!../integration-karma/test/accessibility/synthetic-cross-root-aria/index.spec.js',
36-
'!../integration-karma/test/api/CustomElementConstructor-getter/index.spec.js',
37-
'!../integration-karma/test/api/isNodeFromTemplate/index.spec.js',
38-
'!../integration-karma/test/api/readonly/index.spec.js',
39-
'!../integration-karma/test/api/registerTemplate/index.spec.js',
40-
'!../integration-karma/test/api/sanitizeAttribute/index.spec.js',
41-
'!../integration-karma/test/api/sanitizeHtmlContent/index.spec.js',
42-
'!../integration-karma/test/component/LightningElement/index.spec.js',
43-
'!../integration-karma/test/component/LightningElement.addEventListener/index.spec.js',
44-
'!../integration-karma/test/component/LightningElement.errorCallback/index.spec.js',
45-
'!../integration-karma/test/component/LightningElement.render/index.spec.js',
46-
'!../integration-karma/test/component/lifecycle-callbacks/index.spec.js',
47-
'!../integration-karma/test/component/native-vs-synthetic-lifecycle/index.spec.js',
48-
'!../integration-karma/test/events/focus-event-related-target/index.spec.js',
49-
'!../integration-karma/test/integrations/locker/index.spec.js',
50-
'!../integration-karma/test/light-dom/ids/index.spec.js',
51-
'!../integration-karma/test/light-dom/multiple-templates/index.spec.js',
52-
'!../integration-karma/test/light-dom/style-global/index.spec.js',
53-
'!../integration-karma/test/light-dom/slotting/index.spec.js',
54-
'!../integration-karma/test/light-dom/synthetic-shadow-styles/index.spec.js',
55-
'!../integration-karma/test/light-dom/host-pseudo/index.spec.js',
56-
'!../integration-karma/test/light-dom/scoped-styles/index.spec.js',
57-
'!../integration-karma/test/mixed-shadow-mode/composed-path/index.spec.js',
58-
'!../integration-karma/test/mixed-shadow-mode/reporting/index.spec.js',
59-
'!../integration-karma/test/mixed-shadow-mode/synthetic-behavior/index.spec.js',
60-
'!../integration-karma/test/native-shadow/Event-methods/Event.composedPath.spec.js',
61-
'!../integration-karma/test/polyfills/document-body-properties/index.spec.js',
62-
'!../integration-karma/test/profiler/mutation-logging/index.spec.js',
63-
'!../integration-karma/test/profiler/sanity/profiler.spec.js',
64-
'!../integration-karma/test/regression/invalid-key/index.spec.js',
65-
'!../integration-karma/test/rendering/callback-invocation-order/index.spec.js',
66-
'!../integration-karma/test/rendering/elements-are-not-recycled/index.spec.js',
67-
'!../integration-karma/test/rendering/fragment-cache/index.spec.js',
68-
'!../integration-karma/test/rendering/iframe/index.spec.js',
69-
'!../integration-karma/test/rendering/inner-outer-html/index.spec.js',
70-
'!../integration-karma/test/rendering/legacy-scope-tokens/index.spec.js',
71-
'!../integration-karma/test/rendering/native-only-css/index.spec.js',
72-
'!../integration-karma/test/rendering/sanitize-stylesheet-token/index.spec.js',
73-
'!../integration-karma/test/rendering/slotting/index.spec.js',
74-
'!../integration-karma/test/rendering/stylesheet-caching/index.spec.js',
75-
'!../integration-karma/test/shadow-dom/MutationObserver/MutationObserver.spec.js',
76-
'!../integration-karma/test/shadow-dom/Node-properties/Node.hasChildNodes.spec.js',
77-
'!../integration-karma/test/shadow-dom/Node-properties/Node.textContent.spec.js',
78-
'!../integration-karma/test/shadow-dom/ShadowRoot-properties/ShadowRoot.spec.js',
79-
'!../integration-karma/test/shadow-dom/ShadowRoot.elementsFromPoint/index.spec.js',
80-
'!../integration-karma/test/shadow-dom/event-in-shadow-tree/propagation.spec.js',
81-
'!../integration-karma/test/signal/protocol/index.spec.js',
82-
'!../integration-karma/test/synthetic-shadow/active-element/index.spec.js',
83-
'!../integration-karma/test/swapping/styles/index.spec.js',
84-
'!../integration-karma/test/synthetic-shadow/global-styles/index.spec.js',
85-
'!../integration-karma/test/shadow-dom/multiple-templates/index.spec.js',
86-
'!../integration-karma/test/shadow-dom/Node-properties/Node.childNodes.spec.js',
87-
'!../integration-karma/test/synthetic-shadow/inner-outer-text/inner-outer-text.spec.js',
88-
'!../integration-karma/test/synthetic-shadow/scoped-id/multiple-idrefs.spec.js',
89-
'!../integration-karma/test/synthetic-shadow/dom-manual-sharing-nodes/index.spec.js',
90-
'!../integration-karma/test/synthetic-shadow/host-pseudo/index.spec.js',
91-
'!../integration-karma/test/template/directive-for-each/index.spec.js',
92-
'!../integration-karma/test/wire/legacy-adapters/index.spec.js',
93-
'!../integration-karma/test/wire/wirecontextevent-legacy/index.spec.js',
94-
'!../integration-karma/test/component/LightningElement.attachInternals/api/index.spec.js',
95-
'!../integration-karma/test/light-dom/scoped-slot/if-block/index.spec.js',
96-
'!../integration-karma/test/light-dom/slot-fowarding/slots/duplicates/index.spec.js',
97-
'!../integration-karma/test/rendering/programmatic-stylesheets/index.spec.js',
98-
'!../integration-karma/test/synthetic-shadow/style-svg/index.spec.js',
99-
'!../integration-karma/test/rendering/slot-not-at-top-level/element/shadow/index.spec.js',
100-
'!../integration-karma/test/rendering/slot-not-at-top-level/external/shadow/index.spec.js',
101-
'!../integration-karma/test/rendering/slot-not-at-top-level/ifTrue/shadow/index.spec.js',
102-
'!../integration-karma/test/rendering/slot-not-at-top-level/lwcIf/shadow/index.spec.js',
103-
'!../integration-karma/test/misc/clean-dom/index.spec.js',
104-
'!../integration-karma/test/polyfills/document-properties/index.spec.js',
105-
'!../integration-karma/test/shadow-dom/Event-properties/Event.target.spec.js',
106-
'!../integration-karma/test/synthetic-shadow/element-api/element-api.spec.js',
107-
'!../integration-karma/test/template/directive-if/index.spec.js',
108-
'!../integration-karma/test/light-dom/slot-fowarding/slots/forwarding/index.spec.js',
29+
'!test/custom-elements-registry/index.spec.js',
30+
'!test/spread/index.spec.js',
31+
'!test/static-content/index.spec.js',
32+
'!test/wire/reactive-params.spec.js',
33+
'!test/accessibility/synthetic-cross-root-aria/index.spec.js',
34+
'!test/api/CustomElementConstructor-getter/index.spec.js',
35+
'!test/api/isNodeFromTemplate/index.spec.js',
36+
'!test/api/readonly/index.spec.js',
37+
'!test/api/registerTemplate/index.spec.js',
38+
'!test/api/sanitizeAttribute/index.spec.js',
39+
'!test/api/sanitizeHtmlContent/index.spec.js',
40+
'!test/component/LightningElement/index.spec.js',
41+
'!test/component/LightningElement.addEventListener/index.spec.js',
42+
'!test/component/LightningElement.errorCallback/index.spec.js',
43+
'!test/component/LightningElement.render/index.spec.js',
44+
'!test/component/lifecycle-callbacks/index.spec.js',
45+
'!test/component/native-vs-synthetic-lifecycle/index.spec.js',
46+
'!test/events/focus-event-related-target/index.spec.js',
47+
'!test/integrations/locker/index.spec.js',
48+
'!test/light-dom/ids/index.spec.js',
49+
'!test/light-dom/multiple-templates/index.spec.js',
50+
'!test/light-dom/style-global/index.spec.js',
51+
'!test/light-dom/slotting/index.spec.js',
52+
'!test/light-dom/synthetic-shadow-styles/index.spec.js',
53+
'!test/light-dom/host-pseudo/index.spec.js',
54+
'!test/light-dom/scoped-styles/index.spec.js',
55+
'!test/mixed-shadow-mode/composed-path/index.spec.js',
56+
'!test/mixed-shadow-mode/reporting/index.spec.js',
57+
'!test/mixed-shadow-mode/synthetic-behavior/index.spec.js',
58+
'!test/native-shadow/Event-methods/Event.composedPath.spec.js',
59+
'!test/polyfills/document-body-properties/index.spec.js',
60+
'!test/profiler/mutation-logging/index.spec.js',
61+
'!test/profiler/sanity/profiler.spec.js',
62+
'!test/regression/invalid-key/index.spec.js',
63+
'!test/rendering/callback-invocation-order/index.spec.js',
64+
'!test/rendering/elements-are-not-recycled/index.spec.js',
65+
'!test/rendering/fragment-cache/index.spec.js',
66+
'!test/rendering/iframe/index.spec.js',
67+
'!test/rendering/inner-outer-html/index.spec.js',
68+
'!test/rendering/legacy-scope-tokens/index.spec.js',
69+
'!test/rendering/native-only-css/index.spec.js',
70+
'!test/rendering/sanitize-stylesheet-token/index.spec.js',
71+
'!test/rendering/slotting/index.spec.js',
72+
'!test/rendering/stylesheet-caching/index.spec.js',
73+
'!test/shadow-dom/MutationObserver/MutationObserver.spec.js',
74+
'!test/shadow-dom/Node-properties/Node.hasChildNodes.spec.js',
75+
'!test/shadow-dom/Node-properties/Node.textContent.spec.js',
76+
'!test/shadow-dom/ShadowRoot-properties/ShadowRoot.spec.js',
77+
'!test/shadow-dom/ShadowRoot.elementsFromPoint/index.spec.js',
78+
'!test/shadow-dom/event-in-shadow-tree/propagation.spec.js',
79+
'!test/signal/protocol/index.spec.js',
80+
'!test/synthetic-shadow/active-element/index.spec.js',
81+
'!test/swapping/styles/index.spec.js',
82+
'!test/synthetic-shadow/global-styles/index.spec.js',
83+
'!test/shadow-dom/multiple-templates/index.spec.js',
84+
'!test/shadow-dom/Node-properties/Node.childNodes.spec.js',
85+
'!test/synthetic-shadow/inner-outer-text/inner-outer-text.spec.js',
86+
'!test/synthetic-shadow/scoped-id/multiple-idrefs.spec.js',
87+
'!test/synthetic-shadow/dom-manual-sharing-nodes/index.spec.js',
88+
'!test/synthetic-shadow/host-pseudo/index.spec.js',
89+
'!test/template/directive-for-each/index.spec.js',
90+
'!test/wire/legacy-adapters/index.spec.js',
91+
'!test/wire/wirecontextevent-legacy/index.spec.js',
92+
'!test/component/LightningElement.attachInternals/api/index.spec.js',
93+
'!test/light-dom/scoped-slot/if-block/index.spec.js',
94+
'!test/light-dom/slot-fowarding/slots/duplicates/index.spec.js',
95+
'!test/rendering/programmatic-stylesheets/index.spec.js',
96+
'!test/synthetic-shadow/style-svg/index.spec.js',
97+
'!test/rendering/slot-not-at-top-level/element/shadow/index.spec.js',
98+
'!test/rendering/slot-not-at-top-level/external/shadow/index.spec.js',
99+
'!test/rendering/slot-not-at-top-level/ifTrue/shadow/index.spec.js',
100+
'!test/rendering/slot-not-at-top-level/lwcIf/shadow/index.spec.js',
101+
'!test/misc/clean-dom/index.spec.js',
102+
'!test/polyfills/document-properties/index.spec.js',
103+
'!test/shadow-dom/Event-properties/Event.target.spec.js',
104+
'!test/synthetic-shadow/element-api/element-api.spec.js',
105+
'!test/template/directive-if/index.spec.js',
106+
'!test/light-dom/slot-fowarding/slots/forwarding/index.spec.js',
109107
],
110108
nodeResolve: true,
111109
rootDir: import.meta.dirname,

0 commit comments

Comments
 (0)