Repository navigation
Commit ecf0631
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
| 179 | + | |
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| |||
0 commit comments