commit bf3b864dc40c72489b01aefa9d8d25e9b9a3c56b
parent 848723b88c51913f389ff343d12345fae0a56260
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
30eb2e1 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: "",
},