From 70063c8d6ca78916eef8fe8dc0c738c618f5908d Mon Sep 17 00:00:00 2001 From: Alex Smolya <127655982+alexsmolya@users.noreply.github.com> Date: Thu, 3 Sep 2026 09:46:56 +0200 Subject: [PATCH] test: prevent invalid dates in memory store properties --- tests/memory/in-memory-memory-store.property.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/memory/in-memory-memory-store.property.test.ts b/tests/memory/in-memory-memory-store.property.test.ts index 8ec605b..98b20c2 100644 --- a/tests/memory/in-memory-memory-store.property.test.ts +++ b/tests/memory/in-memory-memory-store.property.test.ts @@ -10,7 +10,9 @@ describe("InMemoryMemoryStore property-based tests", () => { const taskIdArb = fc.string({ minLength: 1, maxLength: 20 }); const inputArb = fc.string(); const outputArb = fc.anything(); - const recordedAtArb = fc.date().map((d) => d.toISOString()); + const recordedAtArb = fc + .date({ noInvalidDate: true }) + .map((d) => d.toISOString()); const entryArb: fc.Arbitrary = fc.record({ agentId: agentIdArb,