Add web host: wasm bridge, page shell, pixel GAME OVER, Playwright smoke tests

This commit is contained in:
ZacharyZhang-NY committed 2026-10-11 17:15:37 -04:00
1 parent d3b4adebb0
commit 83bc28c087
13 files changed
+923 -7

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
import { defineConfig } from '@playwright/test'
// BASE_URL runs the tests against a deployed site.
const url = process.env.BASE_URL
export default defineConfig({
testDir: 'tests',
timeout: 60000,
use: { baseURL: url || 'http://localhost:4173', viewport: { width: 1280, height: 800 } },
webServer: url
? undefined
: { command: 'python3 -m http.server 4173 --directory dist', url: 'http://localhost:4173', reuseExistingServer: true }
})