Skip to content

Commit 2fd7969

Browse files
committed
test(webapp): default SESSION_SECRET in setup, not at module scope
1 parent 1a421bb commit 2fd7969

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

apps/webapp/test/dashboardAgentWatchErrorFingerprint.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ vi.mock("~/v3/canAccessDashboardAgent.server", () => ({
4242
canAccessDashboardAgent: async () => true,
4343
}));
4444

45-
process.env.SESSION_SECRET = "test-session-secret-for-watch-fingerprints";
46-
4745
const { createDashboardAgentWatch } = await import("~/services/dashboardAgentWatches.server");
4846

4947
/** Replays every migration in order, so a new migration can't leave this file on a stale schema. */

apps/webapp/test/setup.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ config({ path: path.resolve(__dirname, "../.env") });
1313
// the pair — the ioredis mock below forces lazyConnect, so nothing ever dials.
1414
process.env.REDIS_HOST ??= "localhost";
1515
process.env.REDIS_PORT ??= "6379";
16+
process.env.SESSION_SECRET ??= "test-session-secret";
1617
process.env.PROVIDER_SECRET ??= "test-provider-secret";
1718
process.env.COORDINATOR_SECRET ??= "test-coordinator-secret";
1819
process.env.MANAGED_WORKER_SECRET ??= "test-managed-worker-secret";

0 commit comments

Comments
 (0)