test: enhance test environment mocking
This commit is contained in:
@@ -8,10 +8,12 @@ export function getTestEnvVariables(): Cloudflare.Env {
|
|||||||
export function getTestEnv({
|
export function getTestEnv({
|
||||||
ADMIN_SDK_JSON = '{"client_email": "test@test.com", "project_id": "test-26g38"}',
|
ADMIN_SDK_JSON = '{"client_email": "test@test.com", "project_id": "test-26g38"}',
|
||||||
LOG_DB_QUERIES = "false",
|
LOG_DB_QUERIES = "false",
|
||||||
|
...mockEnv
|
||||||
}: Partial<Cloudflare.Env> = {}): Cloudflare.Env {
|
}: Partial<Cloudflare.Env> = {}): Cloudflare.Env {
|
||||||
return {
|
return {
|
||||||
...env,
|
...env,
|
||||||
ADMIN_SDK_JSON,
|
ADMIN_SDK_JSON,
|
||||||
LOG_DB_QUERIES,
|
LOG_DB_QUERIES,
|
||||||
|
...mockEnv,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user