test(loans): migrate specs to Vitest #476
All Vouch review confidence checks passed
Residual risk 0.23 = Change Risk (0.58) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.58 · 163 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.305
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.058
Real PR Conversation Timeline
1 comments
"Review active on #476"
general
weight: 0.35
zhangxinyao88
What and why
Part of #406.
Migrates the remaining 12 loan-area Jasmine/Karma specs to Vitest, removes them from the Karma ratchet baseline, and updates the matching ESLint-suppression paths. The client migration remains in #475.
Verification
TZ=UTC npm run test:unit -- --include='src/app/features/loans/*/.test.ts'— 13 files / 59 tests passed, including the already-migrated loan-view specnpm run check:test-runner— 13 Karma specs remainnpm run lintnpm run lint:prunenpm run i18n:checknpm run check:iconsnpm run buildScreenshots
Not applicable — test-only change.
Checklist
src/app/api/.src/app/core/adapters/instead of direct browser globals or imperative third-party APIs. Not applicable — test-only change.