import { describe, expect, it } from "vitest"; import { checkMutation, checkReadAnswer, score } from "./checker.js"; import type { Submission } from "./checker.js"; import type { Issue, Label, PullRequest, RepoState, RequiredFact, ScoringSpec, } from "./scoring-spec.js"; /** Build an issue with sensible defaults, overridable per test. */ function issue(overrides: Partial = {}): Issue { return { number: 1, title: "Login button misaligned", body: "The submit button overflows on mobile.", state: "open", labels: [], assignees: [], comments: [], ...overrides, }; } /** Build a label with sensible defaults, overridable per test. */ function label(overrides: Partial