fix(01-11): keep reminder fixture type-safe

- mutate the inferred schedule fixture without widening nullable fields
- preserve the cross-midnight RED expectation unchanged
This commit is contained in:
Marc-André Bombeck committed 2026-07-29 14:24:00 +02:00
1 parent 25612294d1
commit 958b0e10d9
1 file changed
+2 -3
@@ -316,13 +316,12 @@ describe("medication reminder — client-managed suppression is APNs-only", () =
describe("issue #664 — dedup follows the scheduled occurrence across midnight", () => {
it("dispatches an untreated overnight occurrence once and anchors its own local date", async () => {
const med = medicationFixture();
med.schedules[0] = {
...med.schedules[0],
Object.assign(med.schedules[0], {
windowStart: "23:45",
windowEnd: "00:30",
timesOfDay: ["23:45"],
rrule: "FREQ=DAILY",
};
});
med.user.timezone = "Europe/Berlin";
prismaMock.medication.findMany.mockResolvedValue([med]);