Updated to just use DATABASE_* in everything other than local docker.
This commit is contained in:
Stefan Lazic committed 2026-08-07 17:30:12 +01:00
1 parent 769d3f9ebc
commit 51de4f4ef5
19 files changed
+120 -56

No files matched your search

+6 -7
View File
@@ -2,12 +2,12 @@ import { defineConfig, devices } from "@playwright/test";
/**
* End-to-end customer journeys — real browser, real dev server, real
* Postgres. Needs DATABASE_URL pointed at a throwaway database before
* running (same "migrate, seed, test, tear down" pattern as
* `npm run test:integration` — see docs/phase-3-summary.md and
* docs/phase-4-summary.md). `globalSetup` applies migrations and seed
* data automatically so a single `npm run test:e2e` is enough once
* DATABASE_URL is set.
* MySQL. Needs DATABASE_HOST/DATABASE_NAME/DATABASE_USER/DATABASE_PASSWORD
* pointed at a throwaway database before running (same "migrate, seed,
* test, tear down" pattern as `npm run test:integration` — see
* docs/phase-3-summary.md and docs/phase-4-summary.md). `globalSetup`
* applies migrations and seed data automatically so a single
* `npm run test:e2e` is enough once those are set.
*/
const PORT = 3100;
const baseURL = `http://localhost:${PORT}`;
@@ -34,7 +34,6 @@ export default defineConfig({
timeout: 60_000,
env: {
...process.env,
DATABASE_URL: process.env.DATABASE_URL ?? "",
// Any fixed value is fine — see src/lib/booking-draft/sign.ts. Only
// needs to be consistent for the lifetime of this one server process.
AUTH_SECRET: process.env.AUTH_SECRET ?? "playwright-e2e-test-secret-do-not-use-in-production",