Skip to content

Commit

Permalink
test(wtr): remove unnecessary web dev server patches
Browse files Browse the repository at this point in the history
  • Loading branch information
giamir committed Nov 6, 2023
1 parent ee6ee25 commit e0a7a29
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 132 deletions.
1 change: 0 additions & 1 deletion run-test-visual.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ docker run --tty --rm -p 8000:8000 `
-v "${current_dir}/screenshots:/app/screenshots" `
-v "${current_dir}/web-test-runner.config.mjs:/app/web-test-runner.config.mjs" `
-v "${current_dir}/web-test-runner.config.ci.mjs:/app/web-test-runner.config.ci.mjs" `
-v "${current_dir}/web-dev-server-patches.mjs:/app/web-dev-server-patches.mjs" `
stacks/test-visual @args

exit $LASTEXITCODE
124 changes: 0 additions & 124 deletions web-dev-server-patches.mjs

This file was deleted.

8 changes: 1 addition & 7 deletions web-test-runner.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,13 @@ import _commonjs from "@rollup/plugin-commonjs";
import { playwrightLauncher } from "@web/test-runner-playwright";
import { visualRegressionPlugin } from "@web/test-runner-visual-regression/plugin";

import {
fromRollupWithFix,
fixExportNamedExports,
} from "./web-dev-server-patches.mjs";

const ignoredBrowserLogs = [
"Lit is in dev mode. Not recommended for production! See https://lit.dev/msg/dev-mode for more information.",
];

const postcss = fromRollup(_postcss);
const replace = fromRollup(_replace);
const commonjs = fromRollupWithFix(_commonjs);
const commonjs = fromRollup(_commonjs);

export default {
browsers: [
Expand Down Expand Up @@ -64,7 +59,6 @@ export default {
"preventAssignment": true,
}),
commonjs(),
fixExportNamedExports(),
esbuildPlugin({ ts: true }),
visualRegressionPlugin({
update: process.argv.includes("--update-visual-baseline"),
Expand Down

0 comments on commit e0a7a29

Please sign in to comment.