Skip to content

Commit 052c7d0

Browse files
vaadin-botvursen
andauthored
chore: remove enforceThemePlugin from visual test plugins (#11339) (#11341)
Co-authored-by: Sergey Vinogradov <mr.vursen@gmail.com>
1 parent 4251850 commit 052c7d0

File tree

4 files changed

+4
-10
lines changed

4 files changed

+4
-10
lines changed
-42 Bytes
Loading
0 Bytes
Loading

web-dev-server.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ export default {
100100
},
101101
},
102102
esbuildPlugin({ ts: true }),
103-
104103
enforceThemePlugin(theme),
105-
].filter(Boolean),
104+
],
106105
};

wtr-utils.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import minimist from 'minimist';
77
import { execSync } from 'node:child_process';
88
import fs from 'node:fs';
99
import path from 'node:path';
10-
import { cssImportPlugin, enforceThemePlugin } from './web-dev-server.config.js';
10+
import { cssImportPlugin } from './web-dev-server.config.js';
1111

1212
dotenv.config();
1313

@@ -316,13 +316,8 @@ const createVisualTestsConfig = (theme) => {
316316
failureThresholdType: 'percent',
317317
update: process.env.TEST_ENV === 'update',
318318
}),
319-
320-
// Used by all themes
321-
enforceThemePlugin(theme),
322-
323-
// Lumo / Aura CSS
324-
['lumo', 'aura'].includes(theme) && cssImportPlugin(),
325-
].filter(Boolean),
319+
cssImportPlugin(),
320+
],
326321
groups,
327322
testRunnerHtml: getTestRunnerHtml(theme),
328323
filterBrowserLogs,

0 commit comments

Comments
 (0)