From cb7f2b7a672ec8179b3f6ffadf2cb40b370dc143 Mon Sep 17 00:00:00 2001 From: Taewoo Park Date: Wed, 30 Sep 2026 11:34:42 +0900 Subject: [PATCH] test(cli): pin fixture mtimes in insights bounds test The bounds/oversized test was wall-clock dependent: the 201 ordinary fixtures kept real filesystem mtimes while oversized.jsonl was pinned to NOW + 1 day, so once the real clock passed Sep 27 the oversized file fell out of the newest-first top-200 cut and sessions became 200. Pin the ordinary fixtures to NOW too. --- packages/cli/test/insights.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/cli/test/insights.test.ts b/packages/cli/test/insights.test.ts index 564d999..3f576e4 100644 --- a/packages/cli/test/insights.test.ts +++ b/packages/cli/test/insights.test.ts @@ -244,7 +244,8 @@ describe("local journal insights", () => { for (let i = 0; i < 201; i++) { const run = fixture(`run-${i}`); run.end("done"); - run.save(dir); + const path = run.save(dir); + utimesSync(path, new Date(NOW), new Date(NOW)); } const oversized = join(dir, "oversized.jsonl"); const fd = openSync(oversized, "w");