mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 13:22:14 +00:00
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:
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"),
|
||||
|
||||
Reference in new issue
Block a user