mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-16 15:23:29 +00:00
fix(ci): harden test determinism and dependencies
This commit is contained in:
1 parent
9adeb8fc19
commit
3ce6726646
13 files changed
+354
-75
No files matched your search
@@ -0,0 +1,15 @@
|
||||
import { inject } from "vitest";
|
||||
|
||||
declare module "vitest" {
|
||||
export interface ProvidedContext {
|
||||
integrationDatabaseUrl: string;
|
||||
}
|
||||
}
|
||||
|
||||
process.env.DATABASE_URL = inject("integrationDatabaseUrl");
|
||||
process.env.ENCRYPTION_KEY =
|
||||
"0000000000000000000000000000000000000000000000000000000000000000";
|
||||
delete process.env.ENCRYPTION_KEYS;
|
||||
delete process.env.ENCRYPTION_ACTIVE_KEY_ID;
|
||||
process.env.API_TOKEN_HMAC_KEY = "integration-test-hmac-key-32-bytes-minimum";
|
||||
process.env.SESSION_SECRET = "integration-test-session-secret-32-bytes";
|
||||
Reference in new issue
Block a user