test: fix config tests

This commit is contained in:
Nicolas Meienberger 2026-04-09 23:55:12 +02:00
parent 9dbb94fce0
commit db68cda213
No known key found for this signature in database
2 changed files with 6 additions and 3 deletions

View file

@ -63,11 +63,14 @@ describe("parseConfig", () => {
appVersion: "1.2.3",
trustedOrigins: ["https://admin.example.com", "http://localhost:3000", "https://example.com"],
trustProxy: true,
disableRateLimiting: true,
appSecret: validAppSecret,
baseUrl: "https://example.com",
isSecure: true,
enableDevPanel: true,
flags: {
disableRateLimiting: true,
enableDevPanel: true,
enableLocalAgent: false,
},
provisioningPath: "/tmp/provisioning",
allowedHosts: ["example.com", "admin.example.com", "localhost:3000"],
});

View file

@ -27,7 +27,7 @@
"studio": "drizzle-kit studio",
"test:server": "dotenv -e .env.test -- bunx --bun vitest run --project server",
"test:client": "dotenv -e .env.test -- bunx --bun vitest run --project client",
"test": "dotenv -e .env.test -- bunx --bun vitest run && vp run -r test",
"test": "dotenv -e .env.test -- bunx --bun vitest run && vp run -F './apps/*' -F './packages/*' test",
"test:e2e": "NODE_ENV=test dotenv -e .env.local -- playwright test",
"test:e2e:ui": "NODE_ENV=test dotenv -e .env.local -- playwright test --ui",
"test:codegen": "playwright codegen localhost:4096"