Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions tools/compat-testing/playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,20 @@ export default defineConfig({

webServer: {
command: 'deno task dev:vite',
// Playwright is invoked with cwd = tools/compat-testing/ (via `working-directory`
// in .github/workflows/e2e-playwright.yml). Without `cwd: '../..'`, vite starts
// with process.cwd() = tools/compat-testing/, which has no index.html and no
// public/ — Vite walks up to find vite.config.js but still treats the spawn
// directory as project root, so /assets/main/ui.webp.json 404s and
// PixiJS Loader fails during preload bundle init.
//
// Setting cwd to the repo root (two levels up from tools/compat-testing/)
// makes vite serve public/, raw-assets/, src/, index.html correctly.
cwd: '../..',
port: 1984,
reuseExistingServer: true,
timeout: 60000,
stdout: 'pipe',
stderr: 'pipe',
},
});
Loading