Files
pentagi/backend
Sergey KozyrenkoandClaude Opus 4.8 d3c46c7158 test: close the coverage gaps flagged by the review
- providers: prove a stale user-provider row does not knock out a valid USER
  sibling (TestGetProviders_StaleUserRowSpansValidSibling — ollama builds keyless
  so it survives beside a skipped minimax; side-by-side verified).
- settings-provider: cover the create-form ?type=/?id= guards (disabled/unknown
  type and clone-of-disabled bounce to the list; an enabled type renders). These
  had zero coverage — a swap/drop-return regression would have shipped green.
- knowledge-form: cover performSave's server-document reset branch (untouched
  fields reflect the returned document under keepDirtyValues), and the useBlocker
  "Save and leave" path via a real data router (proceeds the blocked nav, does
  NOT honor a CREATE redirect). Swap the negative no-navigate assertion's
  setTimeout(0) flush for a deterministic Save-disabled anchor.

Each test mutation-verified to fail on the reverted production code; 652 frontend
tests + go test green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-28 00:55:29 +07:00
..