test(integration): export the briefing window constant in the features mock

The insights provider-chain integration test mocks @/lib/insights/features but
omitted BRIEFING_FEATURE_WINDOW_DAYS, which the generate route now reads, so the
route threw on access. Add it to the mock.
This commit is contained in:
Marc-André Bombeck committed 2026-06-21 12:55:13 +02:00
1 parent 31efb3e884
commit c8673786eb
1 file changed
+3
@@ -52,6 +52,9 @@ vi.mock("@/lib/db-compat", () => ({
// the standard module mock works.
vi.mock("@/lib/insights/features", () => ({
extractFeatures: vi.fn(async () => ({ stub: true })),
// v1.19.0 — the generate route reads the bounded briefing window constant;
// the mock must export it or the route throws on access.
BRIEFING_FEATURE_WINDOW_DAYS: 400,
}));
vi.mock("@/lib/insights/prompt", () => ({
getInsightsSystemPrompt: vi.fn(() => "system"),