Skip to content

Commit d6fe22a

Browse files
ci: fix test runner
1 parent cb3e21b commit d6fe22a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

web-test-runner.config.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
import { visualRegressionPlugin } from '@web/test-runner-visual-regression/plugin';
33
import { playwrightLauncher } from '@web/test-runner-playwright';
44

5+
import { polyfill } from '@web/dev-server-polyfill';
6+
57
import pixelmatch from 'pixelmatch';
68
import { PNG } from 'pngjs';
79

@@ -58,6 +60,9 @@ function defaultGetImageDiff({ baselineImage, image, options }) {
5860

5961
export default /** @type {import("@web/test-runner").TestRunnerConfig} */ ({
6062
plugins: [
63+
polyfill({
64+
scopedCustomElementRegistry: true,
65+
}),
6166
visualRegressionPlugin({
6267
update: process.argv.includes('--update-visual-baseline'),
6368
getImageDiff: (options) => {

0 commit comments

Comments
 (0)