Skip to content

test(bank): gate frick-viban provider at 100% coverage#4336

Draft
joshuakrueger-dfx wants to merge 1 commit into
developfrom
fix/bank-frick-audit-followups
Draft

test(bank): gate frick-viban provider at 100% coverage#4336
joshuakrueger-dfx wants to merge 1 commit into
developfrom
fix/bank-frick-audit-followups

Conversation

@joshuakrueger-dfx

@joshuakrueger-dfx joshuakrueger-dfx commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

Rebased onto current develop and reduced to a single, self-contained guardrail. The other Bank Frick audit follow-ups originally bundled here have since landed on develop through their own PRs (asset-linked IBAN attribution via selectAttributionBank; the ledger ASSET-active regression pin), and the per-provider monitoring-isolation change was dropped as an incomplete half-measure (it would trade a loud whole-cycle failure for a silent per-provider blind spot in /health, which has no staleness detection).

Change

Add frick-viban.provider.ts — availability guard, vban create/approve/activation branch, fail-closed throw (payout-adjacent logic) — to the strict test:frick:cov 100% coverage gate (jest.frick.config.js + the test:frick:cov script scope), alongside the seven existing Frick files. The file already sits at 100% under its existing spec, so the gate is enforced, not merely declared, and a future PR can no longer silently erode its coverage.

PR completeness

  • Migration: none. Env/infra: none. Service/DTO/interface: none changed. Frontend sync: none. No source code change at all — coverage-config only.

Test plan

  • npm run test:frick:cov → 8 suites, 303 tests, all eight Frick files (incl. frick-viban.provider.ts) at 100/100/100/100.
  • prettier --check clean on both changed files.

@joshuakrueger-dfx
joshuakrueger-dfx marked this pull request as ready for review July 23, 2026 11:48
@joshuakrueger-dfx
joshuakrueger-dfx force-pushed the fix/bank-frick-audit-followups branch from 57be1e7 to 6fbd62c Compare July 24, 2026 21:14
@joshuakrueger-dfx joshuakrueger-dfx changed the title fix(bank): close Bank Frick post-merge audit gaps fix(bank): isolate per-provider balance fetch and gate frick-viban coverage Jul 24, 2026
frick-viban.provider.ts (availability guard, vban create/approve/
activation branch, fail-closed throw) is payout-adjacent logic that sat
outside the strict test:frick:cov 100% gate. Add it to the gate
(jest.frick.config.js + the test:frick:cov scope) alongside the seven
existing Frick files; it already sits at 100% under its existing spec, so
the gate is enforced, not merely declared.
@joshuakrueger-dfx
joshuakrueger-dfx force-pushed the fix/bank-frick-audit-followups branch from 6fbd62c to 23c287d Compare July 24, 2026 21:26
@joshuakrueger-dfx joshuakrueger-dfx changed the title fix(bank): isolate per-provider balance fetch and gate frick-viban coverage test(bank): gate frick-viban provider at 100% coverage Jul 24, 2026
@joshuakrueger-dfx
joshuakrueger-dfx marked this pull request as draft July 25, 2026 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant