mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-17 18:35:19 +02:00
chore: enhance E2E tests workflow by adding caching for Next.js build and updating test command
This commit is contained in:
parent
548e574f1a
commit
292b4d70ac
4 changed files with 21 additions and 7 deletions
|
|
@ -20,6 +20,7 @@
|
|||
"db:studio": "drizzle-kit studio",
|
||||
"format:fix": "npx @biomejs/biome check --fix",
|
||||
"test:e2e": "playwright test",
|
||||
"test:e2e:prod": "cross-env CI=1 playwright test",
|
||||
"test:e2e:ui": "playwright test --ui",
|
||||
"test:e2e:headed": "playwright test --headed",
|
||||
"test:e2e:debug": "playwright test --debug",
|
||||
|
|
|
|||
|
|
@ -53,11 +53,13 @@ export default defineConfig({
|
|||
webServer: process.env.PLAYWRIGHT_NO_WEB_SERVER
|
||||
? undefined
|
||||
: {
|
||||
// Pin to webpack dev (Turbopack has caused stale-lock panics in E2E).
|
||||
command: "pnpm exec next dev",
|
||||
// Local stays on webpack dev (Turbopack caused stale-lock panics in E2E).
|
||||
command: process.env.CI
|
||||
? "pnpm build && pnpm start"
|
||||
: "pnpm exec next dev",
|
||||
url: `http://localhost:${PORT}`,
|
||||
reuseExistingServer: !process.env.CI,
|
||||
timeout: 180_000,
|
||||
timeout: process.env.CI ? 300_000 : 180_000,
|
||||
env: {
|
||||
NEXT_PUBLIC_FASTAPI_BACKEND_URL: `http://localhost:${BACKEND_PORT}`,
|
||||
NEXT_PUBLIC_FASTAPI_BACKEND_AUTH_TYPE: "LOCAL",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue