test: tighten ci run timing selection assertions

This commit is contained in:
Peter Steinberger
2026-05-09 09:40:27 +01:00
parent 9fa8429c26
commit 493724ef2c

View File

@@ -73,7 +73,11 @@ describe("scripts/ci-run-timings.mjs", () => {
], ],
"current", "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", () => { 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", "current",
), ),
).toMatchObject({ databaseId: 3 }); ).toEqual({
databaseId: 3,
event: "push",
headSha: "previous",
});
}); });
it("ignores pnpm passthrough sentinels when parsing monitor args", () => { it("ignores pnpm passthrough sentinels when parsing monitor args", () => {