Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions pm-stack/aggregator/test/coverage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -335,6 +336,9 @@ describe("snapshot rotation — poisoned anchorAt (#5196)", () => {
poolItems: 10,
poolUnsetStatus: 3,
poolUnsetArea: 4,
staleOpenIssues: null,
staleIssuesCollectedAt: null,
staleIssuesError: null,
},
],
});
Expand Down Expand Up @@ -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<CoverageSnapshotFile | null> {
const dir = await mkdtemp(join(tmpdir(), "coverage-store-read-"));
Expand Down
3 changes: 2 additions & 1 deletion pm-stack/aggregator/test/roadmap-annotations.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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" };
Expand Down Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down