Skip to content

chore: add frontend hook tests (useFileDrop, useHotkeyMappings) - #80

Merged
akonopcz merged 1 commit into
developfrom
chore/test-coverage
Dec 29, 2025
Merged

chore: add frontend hook tests (useFileDrop, useHotkeyMappings)#80
akonopcz merged 1 commit into
developfrom
chore/test-coverage

Conversation

@akonopcz

@akonopcz akonopcz commented Dec 29, 2025

Copy link
Copy Markdown
Owner

Summary

  • Added 7 tests for useFileDrop hook (initial state, event listeners, drag handlers)
  • Added 6 tests for useHotkeyMappings hook (state, load, refresh, error handling)
  • Coverage increased from ~5% to 8.38%
  • All 54 tests pass across 4 test files

Test plan

  • yarn test:run passes
  • yarn test:coverage passes (8.38% > 5% threshold)
  • TypeScript compiles without errors

Related to #75

- Added 7 tests for useFileDrop hook (state, events, drag handlers)
- Added 6 tests for useHotkeyMappings hook (state, load, refresh, errors)
- Coverage increased from ~5% to 8.38%
- All 54 tests pass across 4 test files
@akonopcz akonopcz self-assigned this Dec 29, 2025
@akonopcz akonopcz added chore Maintenance tasks, dependency updates, build process changes. developer-tools Developer experience, tooling, debugging debugging labels Dec 29, 2025
@akonopcz akonopcz added this to the Alpha Stability milestone Dec 29, 2025
This was linked to issues Dec 29, 2025
This was unlinked from issues Dec 29, 2025
@akonopcz akonopcz linked an issue Dec 29, 2025 that may be closed by this pull request
3 tasks
@akonopcz
akonopcz merged commit f6c20c4 into develop Dec 29, 2025
5 checks passed
@akonopcz
akonopcz deleted the chore/test-coverage branch December 29, 2025 19:50
@codecov

codecov Bot commented Dec 29, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Maintenance tasks, dependency updates, build process changes. developer-tools Developer experience, tooling, debugging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add frontend component tests

1 participant