mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-06-06 21:23:14 +00:00
Force tests to run on kyoo_test database
This commit is contained in:
+3
-1
@@ -1,9 +1,11 @@
|
||||
import { beforeAll } from "bun:test";
|
||||
import { migrate } from "~/db";
|
||||
|
||||
process.env.PGDATABASE = "kyoo_test";
|
||||
process.env.JWT_SECRET = "this is a secret";
|
||||
process.env.JWT_ISSUER = "https://kyoo.zoriya.dev";
|
||||
|
||||
beforeAll(async () => {
|
||||
// lazy load this so env set before actually applies
|
||||
const { migrate } = await import("~/db");
|
||||
await migrate();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user