Skip to content

Conversation

@gallayl
Copy link
Collaborator

@gallayl gallayl commented Jan 17, 2026

πŸ§ͺ Summary

Add unit tests across frontend services, backend actions, and common utilities to improve overall test coverage.

✨ Changes

πŸ“¦ Common

  • Added tests for file-utils (getFileName, getParentPath, getFullPath)
  • Added tests for url-encode-decode with roundtrip verification

πŸ–₯️ Frontend

  • Components: Widget routing tests, SettingsMenuItem, WizardStep with navigation
  • Services: SessionService (auth flows), FileAssociationsService (file type detection), WatchProgressUpdater, getErrorMessage

βš™οΈ Backend

  • Drive actions: DeleteFileAction, UploadAction with authorization checks
  • Identity actions: PasswordResetAction, RegisterAction with error handling
  • Media utilities: ensureMovieExists, linkMovie with OMDB integration mocking
  • Patcher: runPatch, checkForOrphanedPatch with status transitions
  • Utils: physicalPathUtils, wakeOnLan with magic packet validation

πŸ§ͺ Test Plan

  • All new tests pass (yarn vitest run)
  • No linting errors
  • Follows existing test patterns (vi.mock, usingAsync, Injector setup)

@gallayl gallayl enabled auto-merge (squash) January 17, 2026 14:06
@codecov-commenter
Copy link

Codecov Report

βœ… All modified and coverable lines are covered by tests.
βœ… Project coverage is 30.38%. Comparing base (73ad58f) to head (44205ca).

Additional details and impacted files
@@             Coverage Diff              @@
##           develop     #101       +/-   ##
============================================
+ Coverage    20.04%   30.38%   +10.34%     
============================================
  Files          162      207       +45     
  Lines         2579     3429      +850     
  Branches       349      525      +176     
============================================
+ Hits           517     1042      +525     
- Misses        1835     2137      +302     
- Partials       227      250       +23     

β˜” View full report in Codecov by Sentry.
πŸ“’ Have feedback on the report? Share it here.

πŸš€ New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gallayl gallayl merged commit 5b64a7a into develop Jan 17, 2026
8 checks passed
@gallayl gallayl deleted the test/coverage-improvements branch January 17, 2026 14:09
@codecov-commenter
Copy link

Bundle Report

Bundle size has no change βœ…

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.

3 participants