Skip to content

Commit eb3bd1a

Browse files
committed
test(doctor): stabilize state integrity ordering assertion
1 parent 431e28a commit eb3bd1a

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/commands/doctor-state-integrity.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,12 @@ describe("structured state integrity findings", () => {
126126
});
127127

128128
it("maps a missing state directory to a structured finding and dry-run effect", () => {
129-
const [issue] = detectStateIntegrityHealthIssues({});
129+
const issue = detectStateIntegrityHealthIssues({}).find(
130+
(candidate) => candidate.kind === "missing-state-dir",
131+
);
132+
if (!issue) {
133+
throw new Error("expected missing state directory issue");
134+
}
130135

131136
expect(issue).toEqual({
132137
kind: "missing-state-dir",

0 commit comments

Comments
 (0)