Skip to content

Conversation

@flegaspi700
Copy link
Owner

  • Add 45 comprehensive tests covering all storage functions
  • Test messages, sources, AI theme persistence
  • Test conversation CRUD operations and sorting
  • Test pinned conversation logic
  • Test error handling and edge cases
  • Test bulk operations (clearAllData, getStorageInfo)
  • Improve overall coverage from 63.29% to 64.27%

Uncovered lines remaining (6):

  • Lines 57-59: setItem error path (hard to trigger)
  • Lines 72-74: removeItem error path (hard to trigger)
  • Lines 152-153, 172-173: getStorageInfo Blob calc (browser-specific)

- Add 45 comprehensive tests covering all storage functions
- Test messages, sources, AI theme persistence
- Test conversation CRUD operations and sorting
- Test pinned conversation logic
- Test error handling and edge cases
- Test bulk operations (clearAllData, getStorageInfo)
- Improve overall coverage from 63.29% to 64.27%

Uncovered lines remaining (6):
- Lines 57-59: setItem error path (hard to trigger)
- Lines 72-74: removeItem error path (hard to trigger)
- Lines 152-153, 172-173: getStorageInfo Blob calc (browser-specific)
- Fix FileInfo type: use 'file' instead of 'text/plain'
- Fix AITheme type: use 'palette' instead of 'colors'
- Add required 'id' field to AITheme mocks
- Add required 'source' field to FileInfo mocks
- Fix Message role type: use 'as const' for literal types
- All tests still passing (45/45)
- TypeScript compilation successful
@flegaspi700 flegaspi700 merged commit ecde622 into main Nov 4, 2025
2 checks passed
@flegaspi700 flegaspi700 deleted the test/storage-coverage-improvement branch November 10, 2025 15:05
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.

2 participants