test: follow the newest-entry read and the pulse card toast count

This commit is contained in:
Marc-André Bombeck committed 2026-10-16 06:05:08 +02:00
1 parent f715190703
commit 852433255c
3 files changed
+7 -5

No files matched your search

@@ -37,7 +37,7 @@ vi.mock("@/lib/db", () => ({
userHealthProfile: { findUnique: vi.fn() },
healthProfileFactRevision: { findMany: vi.fn() },
// v1.43 — the anamnesis leaf also carries the newest AUDIT-C entry.
mentalHealthAssessment: { findFirst: vi.fn(async () => null) },
mentalHealthAssessment: { findMany: vi.fn(async () => []) },
user: { findUnique: vi.fn(), update: vi.fn() },
// The whole-record gate reads the session's own stamps: a sign-in a
// moment ago is the proof, on an account without a second factor.