Expand test coverage for action bar, bestiary hook, and remaining gaps #24
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add dedicated tests for the remaining low-coverage components and hooks: action bar (36%), use-bestiary (41%), use-undo-redo-shortcuts (47%), bulk-import-toasts (67%), and stat-block-panel (73%). After coverage improves, raise the thresholds in
vitest.config.tsto lock in the new floor.Acceptance Criteria
action-bar.tsxhas a dedicated test file covering combatant input, add flow, and overflow menu interactionsuse-action-bar-state.tshas a dedicated test file covering state transitions (idle, searching, bulk operations)use-bestiary.tshas a dedicated test file covering creature fetching, caching, and source managementstat-block-panel.tsxhas a dedicated test file covering side panel orchestration and swipe-to-dismissuse-undo-redo-shortcuts.tshas a dedicated test file covering keyboard shortcut handlingbulk-import-toasts.tsxhas a dedicated test file covering toast notification renderingvitest.config.tsare raised to lock in the new floorpnpm checkpasses with 0 warnings and 0 errors