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/package.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'apps/web/package.json') diff --git a/apps/web/package.json b/apps/web/package.json index 139c6529..54f0c31f 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -7,6 +7,8 @@ "dev": "next dev", "build": "next build", "start": "next start", + "test": "vitest", + "test:run": "vitest run", "lint": "biome check src/", "lint:fix": "biome check src/ --write", "format": "biome format src/ --write", @@ -71,6 +73,9 @@ }, "devDependencies": { "@tailwindcss/typography": "^0.5.16", + "@testing-library/jest-dom": "^6.4.0", + "@testing-library/react": "^15.0.7", + "@testing-library/user-event": "^14.5.2", "@types/bun": "latest", "@types/node": "^24.1.0", "@types/pg": "^8.15.4", @@ -78,9 +83,11 @@ "@types/react-dom": "^18.2.18", "cross-env": "^7.0.3", "drizzle-kit": "^0.31.4", + "jsdom": "^26.0.0", "postcss": "^8", "tailwindcss": "^3.4.1", "tsx": "^4.7.1", - "typescript": "^5.8.3" + "typescript": "^5.8.3", + "vitest": "^2.1.8" } } -- cgit v1.3.1