From 493724ef2cc37ad6299ec5c5f1698f722c540e52 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 9 May 2026 09:40:27 +0100 Subject: [PATCH] test: tighten ci run timing selection assertions --- test/scripts/ci-run-timings.test.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/test/scripts/ci-run-timings.test.ts b/test/scripts/ci-run-timings.test.ts index 07e4995669b..7480e179f24 100644 --- a/test/scripts/ci-run-timings.test.ts +++ b/test/scripts/ci-run-timings.test.ts @@ -73,7 +73,11 @@ describe("scripts/ci-run-timings.mjs", () => { ], "current", ), - ).toMatchObject({ databaseId: 1 }); + ).toEqual({ + databaseId: 1, + event: "push", + headSha: "current", + }); }); it("falls back to the newest push CI run when the exact SHA has not appeared yet", () => { @@ -93,7 +97,11 @@ describe("scripts/ci-run-timings.mjs", () => { ], "current", ), - ).toMatchObject({ databaseId: 3 }); + ).toEqual({ + databaseId: 3, + event: "push", + headSha: "previous", + }); }); it("ignores pnpm passthrough sentinels when parsing monitor args", () => {