diff --git a/pm-stack/aggregator/test/coverage.test.ts b/pm-stack/aggregator/test/coverage.test.ts index 294adc46ea..f93d7e5656 100644 --- a/pm-stack/aggregator/test/coverage.test.ts +++ b/pm-stack/aggregator/test/coverage.test.ts @@ -15,6 +15,7 @@ import { type CoverageReport, type CoverageSnapshotFile, type RepoCensus, + type RepoCoverage, } from "../src/coverage.ts"; import { coverageFromFeed } from "../src/feed.ts"; import type { ProjectPoolItem } from "../src/model.ts"; @@ -335,6 +336,9 @@ describe("snapshot rotation — poisoned anchorAt (#5196)", () => { poolItems: 10, poolUnsetStatus: 3, poolUnsetArea: 4, + staleOpenIssues: null, + staleIssuesCollectedAt: null, + staleIssuesError: null, }, ], }); @@ -612,17 +616,25 @@ describe("CoverageSnapshotStore writes (PR #3309 Codex)", () => { }); }); describe("CoverageSnapshotStore reads (#4140)", () => { - const row = { + const row: RepoCoverage = { repo: "developing-today/code", openIssues: 10, gateNow: 1, gateNext: 2, + staleOpenIssues: null, + staleIssuesCollectedAt: null, + staleIssuesError: null, poolItems: 3, poolUnsetStatus: 1, poolUnsetArea: 0, }; - const report = { generatedAt: "2026-11-01T00:00:00Z", repos: [row] }; - const goodFile = { baseline: report, current: report, weekly: report, anchorAt: "2026-11-01T00:00:00Z" }; + const report: CoverageReport = { generatedAt: "2026-11-01T00:00:00Z", repos: [row] }; + const goodFile: CoverageSnapshotFile = { + baseline: report, + current: report, + weekly: report, + anchorAt: "2026-11-01T00:00:00Z", + }; async function readRaw(raw: unknown): Promise { const dir = await mkdtemp(join(tmpdir(), "coverage-store-read-")); diff --git a/pm-stack/aggregator/test/roadmap-annotations.test.ts b/pm-stack/aggregator/test/roadmap-annotations.test.ts index 7e43074a5c..d2ccc8151a 100644 --- a/pm-stack/aggregator/test/roadmap-annotations.test.ts +++ b/pm-stack/aggregator/test/roadmap-annotations.test.ts @@ -6,6 +6,7 @@ import { RoadmapAnnotationsStore, validateNewRoadmapAnnotation, type NewRoadmapAnnotation, + type RoadmapAnnotation, } from "../src/roadmap-annotations.ts"; const author = { kind: "drew" as const, id: "drew", label: "Drew" }; @@ -72,7 +73,7 @@ describe("roadmap annotations (#1284)", () => { expect(statSync(join(dir, quarantined[0])).isDirectory()).toBe(true); expect(existsSync(file)).toBe(false); - const restored = { + const restored: RoadmapAnnotation = { id: "ra-restored", stableRef: "grist:doc/Roadmap/restored", kind: "decision", diff --git a/pm-stack/aggregator/test/saas-extract-surrogate-7743.test.ts b/pm-stack/aggregator/test/saas-extract-surrogate-7743.test.ts index aa9cb2e6a0..c4ad399cb3 100644 --- a/pm-stack/aggregator/test/saas-extract-surrogate-7743.test.ts +++ b/pm-stack/aggregator/test/saas-extract-surrogate-7743.test.ts @@ -76,7 +76,7 @@ describe("#7743 extractSaasServices caps are surrogate-pair-safe", () => { test("usageNote straddling the 600 cap is dropped whole", () => { const svc = bitwarden([usageStraddle]); - const note = svc.usageNote; + const note = svc.usageNote!; expect(note.length).toBe(599); expect(loneHighAtEnd(note)).toBe(false); expect(roundTrips(note)).toBe(true);