Skip to content

Commit 4864566

Browse files
committed
Use Vite preview script for E2E
1 parent eb74f26 commit 4864566

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"fmt:check": "oxfmt --check",
2020
"lint": "oxlint",
2121
"postinstall": "wxt prepare",
22+
"e2e:preview": "vite preview --host localhost --port 51234 --strictPort",
2223
"test:e2e": "pnpm build && playwright test",
2324
"wxt": "wxt",
2425
"zip": "wxt zip",

playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default defineConfig({
6363
],
6464
timeout: process.env.CI ? 30_000 : 5_000,
6565
webServer: {
66-
command: "node e2e/serve-fixtures.mjs 51234",
66+
command: "pnpm e2e:preview",
6767
url: "http://localhost:51234/inspector-playground.html",
6868
reuseExistingServer: true,
6969
timeout: 60_000,

0 commit comments

Comments
 (0)