test: fix config tests
This commit is contained in:
parent
9dbb94fce0
commit
db68cda213
2 changed files with 6 additions and 3 deletions
|
|
@ -63,11 +63,14 @@ describe("parseConfig", () => {
|
||||||
appVersion: "1.2.3",
|
appVersion: "1.2.3",
|
||||||
trustedOrigins: ["https://admin.example.com", "http://localhost:3000", "https://example.com"],
|
trustedOrigins: ["https://admin.example.com", "http://localhost:3000", "https://example.com"],
|
||||||
trustProxy: true,
|
trustProxy: true,
|
||||||
disableRateLimiting: true,
|
|
||||||
appSecret: validAppSecret,
|
appSecret: validAppSecret,
|
||||||
baseUrl: "https://example.com",
|
baseUrl: "https://example.com",
|
||||||
isSecure: true,
|
isSecure: true,
|
||||||
enableDevPanel: true,
|
flags: {
|
||||||
|
disableRateLimiting: true,
|
||||||
|
enableDevPanel: true,
|
||||||
|
enableLocalAgent: false,
|
||||||
|
},
|
||||||
provisioningPath: "/tmp/provisioning",
|
provisioningPath: "/tmp/provisioning",
|
||||||
allowedHosts: ["example.com", "admin.example.com", "localhost:3000"],
|
allowedHosts: ["example.com", "admin.example.com", "localhost:3000"],
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
"studio": "drizzle-kit studio",
|
"studio": "drizzle-kit studio",
|
||||||
"test:server": "dotenv -e .env.test -- bunx --bun vitest run --project server",
|
"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: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": "NODE_ENV=test dotenv -e .env.local -- playwright test",
|
||||||
"test:e2e:ui": "NODE_ENV=test dotenv -e .env.local -- playwright test --ui",
|
"test:e2e:ui": "NODE_ENV=test dotenv -e .env.local -- playwright test --ui",
|
||||||
"test:codegen": "playwright codegen localhost:4096"
|
"test:codegen": "playwright codegen localhost:4096"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue