Jelajahi Sumber

RHL-005-fix(tests): update SESSION_SECRET to meet environment policy requirements

Code_Uwe 1 hari lalu
induk
melakukan
71824431b3
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      lib/auth/session.test.js

+ 2 - 1
lib/auth/session.test.js

@@ -41,7 +41,8 @@ import { __cookieStore } from "next/headers";
 describe("auth session utilities", () => {
 	beforeEach(() => {
 		__cookieStore.clear();
-		process.env.SESSION_SECRET = "test-session-secret";
+		// Align tests with env policy: strong secret (>= 32 chars)
+		process.env.SESSION_SECRET = "x".repeat(64);
 		process.env.NODE_ENV = "test";
 	});