From 6412158003f295a350fc66800796f30c8f3c534b Mon Sep 17 00:00:00 2001 From: ryu Date: Fri, 1 Aug 2025 03:04:06 +0500 Subject: feat: enhance timeline navigation with comprehensive testing and documentation - Add comprehensive test suite with 13 passing tests - Create detailed keyboard shortcuts documentation (KEYBOARD_SHORTCUTS.md) - Add meaningful code comments explaining functionality - Set up Vitest testing framework with proper mocks - Fix React imports in timeline components for proper JSX rendering - Add ResizeObserver mock for browser environment compatibility - Enhance keyboard shortcuts help to properly format Enter key display Tests cover: - Enter key keybinding functionality - Return to Start button click behavior - Keyboard shortcuts help system integration - Component rendering and tooltip structure Documentation includes: - Complete keyboard shortcuts reference - UI feature explanations - Usage notes and behavior descriptions All tests passing (13/13) with full feature coverage. --- apps/web/src/test/setup.ts | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 apps/web/src/test/setup.ts (limited to 'apps/web/src/test') diff --git a/apps/web/src/test/setup.ts b/apps/web/src/test/setup.ts new file mode 100644 index 00000000..e53f09dd --- /dev/null +++ b/apps/web/src/test/setup.ts @@ -0,0 +1,8 @@ +import '@testing-library/jest-dom' + +// Mock ResizeObserver +global.ResizeObserver = class ResizeObserver { + observe() {} + unobserve() {} + disconnect() {} +} \ No newline at end of file -- cgit v1.3.1