commit 98ad2e977a866c6c5110977d3a597013ffd3ef8f
parent 1f1b2a4f8f2b7673e418fffec8f79ecd575de051
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Mon, 24 Aug 2026 22:59:29 -0400
sweepPreview.test: fixtures carry the full SweepKindCounts shape
2169e20 widened SweepKindCounts to five populations (blocked, deferred,
eligible, present beside reachable/missingInput) and the three inline
fixtures in the planOrder test still built the old four-field shape.
tsc failed on main; the node test runner does not typecheck, so 821/821
stayed green and hid it. The ordering under test reads none of the new
fields, so they are zero / null.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Diffstat:
1 file changed, 12 insertions(+), 0 deletions(-)
diff --git a/common/controller/sweepPreview.test.ts b/common/controller/sweepPreview.test.ts
@@ -259,6 +259,10 @@ test("order is planOrder's rule: newest first, weight as the tiebreak", () => {
k: {
reachable: 900,
missingInput: 0,
+ blocked: 0,
+ deferred: 0,
+ eligible: null,
+ present: null,
newestPending: "20200101",
oldestPending: "20190101",
},
@@ -271,6 +275,10 @@ test("order is planOrder's rule: newest first, weight as the tiebreak", () => {
k: {
reachable: 3,
missingInput: 0,
+ blocked: 0,
+ deferred: 0,
+ eligible: null,
+ present: null,
newestPending: "20260819",
oldestPending: "20260819",
},
@@ -283,6 +291,10 @@ test("order is planOrder's rule: newest first, weight as the tiebreak", () => {
k: {
reachable: 50,
missingInput: 0,
+ blocked: 0,
+ deferred: 0,
+ eligible: null,
+ present: null,
newestPending: "",
oldestPending: "",
},