Skip to content

Commit 1fc08b2

Browse files
committed
test(wtr): implement jasmine.any
1 parent 8a06494 commit 1fc08b2

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

packages/@lwc/integration-not-karma/configs/integration.mjs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,13 @@ export default {
77
files: [
88
// FIXME: These tests are just symlinks to integration-karma for now so the git diff smaller
99
'test/**/*.spec.js',
10-
'!test/accessibility/synthetic-cross-root-aria/index.spec.js',
11-
'!test/api/freezeTemplate/index.spec.js',
12-
'!test/component/LightningElement.addEventListener/index.spec.js',
13-
'!test/custom-elements-registry/index.spec.js',
1410
'!test/events/focus-event-related-target/index.spec.js',
15-
'!test/integrations/locker/index.spec.js',
1611
'!test/light-dom/host-pseudo/index.spec.js',
1712
'!test/light-dom/multiple-templates/index.spec.js',
1813
'!test/light-dom/scoped-slot/if-block/index.spec.js',
1914
'!test/light-dom/scoped-styles/index.spec.js',
2015
'!test/light-dom/style-global/index.spec.js',
2116
'!test/misc/clean-dom/index.spec.js',
22-
'!test/mixed-shadow-mode/composed-path/index.spec.js',
2317
'!test/polyfills/document-body-properties/index.spec.js',
2418
'!test/polyfills/document-properties/index.spec.js',
2519
'!test/profiler/mutation-logging/index.spec.js',
@@ -45,6 +39,14 @@ export default {
4539

4640
// Cannot reassign properties of module
4741
'!test/api/sanitizeAttribute/index.spec.js',
42+
43+
// Hacky nonsense highly tailored to Karma
44+
'!test/custom-elements-registry/index.spec.js',
45+
46+
// Logging mismatches
47+
'!test/accessibility/synthetic-cross-root-aria/index.spec.js',
48+
'!test/api/freezeTemplate/index.spec.js',
49+
'!test/component/LightningElement.addEventListener/index.spec.js',
4850
],
4951
plugins: [...baseConfig.plugins, testPlugin],
5052
};

packages/@lwc/integration-not-karma/helpers/setup.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@ globalThis.expect = chai.expect;
4848
globalThis.LWC = LWC;
4949
globalThis.spyOn = (object, prop) => jasmineSpyAdapter(spyOn(object, prop));
5050
globalThis.jasmine = {
51-
any: () => {
52-
throw new Error(`TODO: jasmine.any`);
53-
},
51+
any: expect.any,
5452
arrayWithExactContents: () => {
5553
throw new Error('TODO: jasmine.arrayWithExactContents');
5654
},

0 commit comments

Comments
 (0)