This repository was archived by the owner on Jun 7, 2026. It is now read-only.
Description
name: Test Fixes Required
about: Track and fix failing tests in balance and wallet checks
title: '[TEST] Fix Balance and Wallet Check Tests'
labels: 'test, bug, high-priority'
assignees: ''
Failed Tests Overview
Balance Check Tests
Reference: src/tests/balanceCheck.test.ts
"should check balances and pass when sufficient funds exist"
"should fail when balance is insufficient"
"should handle network errors gracefully"
"should correctly compare large balance values"
Wallet Check Tests
Reference: src/tests/walletCheck.test.ts
"should fail if init has not been run"
"should fail if wallet address is invalid"
Root Causes
Mock Implementation Issues:
startLine: 31
endLine: 39
Environment Setup:
startLine: 11
endLine: 29
Required Fixes
Balance Check Tests
Update mock implementations to match new utility structure
Fix build folder validation in tests
Correct balance comparison logic
Add proper error handling tests
Wallet Check Tests
Fix init validation mocking
Update wallet address validation
Correct environment variable handling
Success Criteria
Implementation Notes
Keep existing test structure
Maintain separation of concerns
Follow established mocking patterns
Update documentation as needed
Related Files
src/commands/checks/balanceCheck.ts
src/commands/checks/walletCheck.ts
src/utils/wallet.ts
src/utils/validation.ts
Would you like me to create this as an actual issue in the repository?
Reactions are currently unavailable
name: Test Fixes Required
about: Track and fix failing tests in balance and wallet checks
title: '[TEST] Fix Balance and Wallet Check Tests'
labels: 'test, bug, high-priority'
assignees: ''
Failed Tests Overview
Balance Check Tests
Reference:
src/tests/balanceCheck.test.tsWallet Check Tests
Reference:
src/tests/walletCheck.test.tsRoot Causes
Required Fixes
Balance Check Tests
Wallet Check Tests
Success Criteria
Implementation Notes
Related Files