Skip to content

Commit

Permalink
chore: fix setup test missing envs
Browse files Browse the repository at this point in the history
  • Loading branch information
brunotot committed Sep 17, 2024
1 parent de513c5 commit ae3a726
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,14 @@ export default async () => {
const mongoUrl = mongoUri.replace("mongodb://", "");
const [host, port] = mongoUrl.split(":");
process.env.SERVER_PORT = String(TEST_PORT);
process.env.SERVER_DOMAIN = `http://localhost`;
process.env.SERVER_SESSION_SECRET = "secret-test-key";
process.env.DATABASE_URL = `mongodb://${host}:${port}`;
process.env.DATABASE_NAME = dbDatabase;
process.env.KEYCLOAK_URL = "https://keycloak-production-86f5.up.railway.app";
process.env.KEYCLOAK_ADMIN_CLI_SECRET = "RVi9hykmCMS5WKUcemDhX8Kar4vQP09E";
process.env.CORS_ALLOWED_ORIGINS = "http://localhost:5173";

return async () => {
if (teardown) throw new Error("teardown called twice");
teardown = true;
Expand Down

0 comments on commit ae3a726

Please sign in to comment.