-
Notifications
You must be signed in to change notification settings - Fork 0
Open
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: 29Required 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
- All balance check tests passing
- All wallet check tests passing
- No regression in other test suites
- Test coverage maintained or improved
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
Metadata
Metadata
Assignees
Labels
No labels