From 84024a322df9f83c7f33fb007efe0c119ad3e126 Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Fri, 5 Jun 2026 00:49:06 +0000 Subject: [PATCH 1/2] test(dashboard): pin fake timers in mock routes test The mock reporting fixture uses hardcoded session dates around 2026-05-29. recentConversationGroups filters sessions older than 7 days from Date.now(), so the test began failing once the wall clock passed that threshold. Pin time with vi.useFakeTimers so the fixture stays within the stats window. Co-authored-by: U039RR91S --- packages/junior-dashboard/tests/dashboard-mock-routes.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/junior-dashboard/tests/dashboard-mock-routes.test.ts b/packages/junior-dashboard/tests/dashboard-mock-routes.test.ts index addac3f5..e2c93216 100644 --- a/packages/junior-dashboard/tests/dashboard-mock-routes.test.ts +++ b/packages/junior-dashboard/tests/dashboard-mock-routes.test.ts @@ -110,6 +110,9 @@ describe("dashboard mock conversation routes", () => { }); it("overlays mock conversations for local dashboard visual QA", async () => { + // Pin time to match the hardcoded session dates in the mock reporting fixture. + // Without this, recentConversationGroups filters out sessions older than 7 days. + vi.useFakeTimers({ now: new Date("2026-05-29T00:00:00.000Z") }); const app = createDashboardApp({ authRequired: false, allowedGoogleDomains: [], From d63388d495737fec071168ed12711c954f7a4697 Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Fri, 5 Jun 2026 00:53:30 +0000 Subject: [PATCH 2/2] test(dashboard): fix fake timer date (use 2026-05-30) Co-authored-by: U039RR91S --- packages/junior-dashboard/tests/dashboard-mock-routes.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/junior-dashboard/tests/dashboard-mock-routes.test.ts b/packages/junior-dashboard/tests/dashboard-mock-routes.test.ts index e2c93216..5edb70a7 100644 --- a/packages/junior-dashboard/tests/dashboard-mock-routes.test.ts +++ b/packages/junior-dashboard/tests/dashboard-mock-routes.test.ts @@ -112,7 +112,7 @@ describe("dashboard mock conversation routes", () => { it("overlays mock conversations for local dashboard visual QA", async () => { // Pin time to match the hardcoded session dates in the mock reporting fixture. // Without this, recentConversationGroups filters out sessions older than 7 days. - vi.useFakeTimers({ now: new Date("2026-05-29T00:00:00.000Z") }); + vi.useFakeTimers({ now: new Date("2026-05-30T00:00:00.000Z") }); const app = createDashboardApp({ authRequired: false, allowedGoogleDomains: [],