Summary
npm run lint currently fails with 39 errors (40 problems total) across 3 test files, meaning Frontend CI (a required auto-merge status check) is red on main right now.
Location
frontend/src/hooks/useTxNotifications.test.tsx, frontend/src/lib/tx-recovery.test.ts, frontend/src/lib/wallet.test.ts
Problem
These test files (added in earlier test-coverage fixes) use any extensively for mock typing, tripping @typescript-eslint/no-explicit-any dozens of times, plus at least one other lint rule. npm run lint currently exits non-zero.
Impact
Critical: Frontend CI failing on main blocks the whole CI-gated auto-merge premise for any PR depending on a clean baseline, and it's easy to miss since npm run typecheck and npm test can both pass while lint fails separately.
Acceptance Criteria
Suggested Approach
Go file by file — wallet.test.ts and tx-recovery.test.ts first (fewer errors likely), then useTxNotifications.test.tsx. Most fixes will be replacing any mock parameter/return types with the actual types being mocked.
Summary
npm run lintcurrently fails with 39 errors (40 problems total) across 3 test files, meaning Frontend CI (a required auto-merge status check) is red onmainright now.Location
frontend/src/hooks/useTxNotifications.test.tsx,frontend/src/lib/tx-recovery.test.ts,frontend/src/lib/wallet.test.tsProblem
These test files (added in earlier test-coverage fixes) use
anyextensively for mock typing, tripping@typescript-eslint/no-explicit-anydozens of times, plus at least one other lint rule.npm run lintcurrently exits non-zero.Impact
Critical: Frontend CI failing on
mainblocks the whole CI-gated auto-merge premise for any PR depending on a clean baseline, and it's easy to miss sincenpm run typecheckandnpm testcan both pass while lint fails separately.Acceptance Criteria
npm run lintpasses with zero errors infrontend/anywith proper types (or narrowly-scopedunknown/generic mock types) rather than blanket-disabling the lint rule for these filesnpm teststill passes after the type changes (verify mocks still behave correctly)Suggested Approach
Go file by file —
wallet.test.tsandtx-recovery.test.tsfirst (fewer errors likely), thenuseTxNotifications.test.tsx. Most fixes will be replacinganymock parameter/return types with the actual types being mocked.