Forge jwt for tests

This commit is contained in:
2025-04-06 14:16:49 +02:00
parent 49f700ca6e
commit 0aab4cd84c
12 changed files with 95 additions and 31 deletions
+3
View File
@@ -1,6 +1,9 @@
import { beforeAll } from "bun:test";
import { migrate } from "~/db";
process.env.JWT_SECRET = "this is a secret";
process.env.JWT_ISSUER = "https://kyoo.zoriya.dev";
beforeAll(async () => {
await migrate();
});