Skip to content
File

Blob: test/vitest.bindings.ts

typescript25 lines
1// Shared stable environment variables for Vitest Workers runs
2// These override Wrangler vars via poolOptions.workers.miniflare.bindings
3// Miniflare values take precedence over wrangler.jsonc.
4 
5export const BASE_TEST_BINDINGS = {
6 // Repo DO idle cleanup threshold (minutes)
7 REPO_DO_IDLE_MINUTES: "30",
8 
9 // Logging level lowered for tests to reduce noise
10 LOG_LEVEL: "warn",
11 
12 // Hermetic browser session sealing secret for worker tests.
13 SESSION_SECRET: "test-goc-session-secret",
14 
15 // Hermetic OIDC config. Tests that need a working provider preload one via
16 // `__test.setProviderForTesting`; tests that exercise discovery failure
17 // rely on this issuer being unreachable. A loopback URL with port 65535
18 // keeps the `loadOidcConfig` policy happy (loopback HTTP is allowed)
19 // without ever reaching whatever tessera dev instance the developer might
20 // have running locally.
21 TESSERA_OIDC_ISSUER: "http://127.0.0.1:65535",
22 TESSERA_OIDC_CLIENT_ID: "test-goc",
23 TESSERA_OIDC_CLIENT_SECRET: "test-goc-secret",
24} as const;