Skip to content

Commit ecf0631

Browse files
authored
test(doctor): assert auth health targets in collection order (#129409)
## What Problem This Solves `check-lint-core-3` is red on `main` since #129375: `src/commands/doctor-auth.profile-health.test.ts:179` calls `toSorted()` with no compare function, which `typescript/require-array-sort-compare` rejects (`main` `d53ea9cf4`, job `check-lint-core-3`). ## Why This Change Was Made The findings are collected in a fixed target order (`targets` map insertion in `src/commands/doctor-auth.ts`), so the test asserts that order directly, like the sibling assertion at line 206. Test-only change; no behavior change. ## User Impact None at runtime. Restores the `check-lint-core-3` gate on `main`. ## Evidence - `node scripts/run-oxlint.mjs src/commands/doctor-auth.profile-health.test.ts` — clean. - `node scripts/run-vitest.mjs src/commands/doctor-auth.profile-health.test.ts` — 23 passed. - LOC: production 0; tests +4 / −3 (comparator-based first push failed `check-test-types-core-1`: `target` is optional). - Other `main` failures (`checks-node-compact-*` auth-resolution hangs from #129052) are not addressed here; a separate PR carries that fix.
1 parent 6ad7915 commit ecf0631

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/commands/doctor-auth.profile-health.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ describe("noteAuthProfileHealth", () => {
176176
} as OpenClawConfig,
177177
});
178178

179-
expect(findings.map((finding) => finding.target).toSorted()).toEqual([
179+
expect(findings.map((finding) => finding.target)).toEqual([
180180
"anthropic:custom-cli",
181181
"anthropic:static-cli",
182182
]);

0 commit comments

Comments
 (0)