test: enhance test environment mocking

This commit is contained in:
2025-12-17 06:36:04 -05:00
parent 6eb42f6a33
commit d5b113c884

View File

@@ -8,10 +8,12 @@ export function getTestEnvVariables(): Cloudflare.Env {
export function getTestEnv({
ADMIN_SDK_JSON = '{"client_email": "test@test.com", "project_id": "test-26g38"}',
LOG_DB_QUERIES = "false",
...mockEnv
}: Partial<Cloudflare.Env> = {}): Cloudflare.Env {
return {
...env,
ADMIN_SDK_JSON,
LOG_DB_QUERIES,
...mockEnv,
};
}