fix: test failures

This commit is contained in:
2024-10-05 16:48:31 -04:00
parent 5ea90bda55
commit 271ea01b21
9 changed files with 739 additions and 58 deletions

View File

@@ -6,22 +6,14 @@ export function getTestEnvVariables(): Omit<Env, "Bindings" | "Variables"> {
}
export function getTestEnv({
ADMIN_SDK_JSON = '{"clientEmail": "test@test.com"}',
ADMIN_SDK_JSON = '{"client_email": "test@test.com", "project_id": "test-26g38"}',
ENABLE_ANIFY = "true",
QSTASH_CURRENT_SIGNING_KEY = "123",
QSTASH_NEXT_SIGNING_KEY = "123",
QSTASH_URL = "https://qstash.com",
QSTASH_TOKEN = "123",
TURSO_AUTH_TOKEN = "123",
TURSO_URL = "http://127.0.0.1:3001",
}: Partial<Env> = {}): Env {
return {
ADMIN_SDK_JSON,
ENABLE_ANIFY,
QSTASH_CURRENT_SIGNING_KEY,
QSTASH_NEXT_SIGNING_KEY,
QSTASH_URL,
QSTASH_TOKEN,
TURSO_AUTH_TOKEN,
TURSO_URL,
};