@@ -19,10 +19,6 @@ npm run test # Run Jest unit tests
1919npm run test:watch # Run tests in watch mode
2020npm run test:coverage # Generate coverage report
2121npm run test:ci # Run tests in CI mode with coverage
22- npm run test:e2e # Run Playwright E2E tests
23- npm run test:e2e:ui # Run E2E tests with UI
24- npm run test:e2e:debug # Debug E2E tests
25- npm run test:e2e:headed # Run E2E tests in headed mode
2622
2723# Code Quality
2824npm run lint # Run ESLint linting
@@ -41,7 +37,7 @@ npm run format:write # Format code and auto-stage changes
4137- ** UI Components** : Radix UI headless components with custom styling
4238- ** Charts** : Multi-library approach (ECharts, Nivo, Recharts)
4339- ** Forms** : React Hook Form with validation
44- - ** Testing** : Jest + React Testing Library + Playwright
40+ - ** Testing** : Jest + React Testing Library
4541- ** Development** : Turbopack for fast builds, Husky for Git hooks
4642
4743### Directory Structure
@@ -135,7 +131,6 @@ const MyComponent = ({ variant = 'default', ...props }) => {
135131#### Testing Setup
136132- ** Jest Configuration** : Custom setup with module name mapping for path aliases
137133- ** Coverage Collection** : Includes components, app, lib, hooks, and stores directories
138- - ** E2E Testing** : Playwright configured for comprehensive end-to-end testing
139134- ** Component Testing** : React Testing Library with jsdom environment
140135
141136#### Environment & API
@@ -192,16 +187,11 @@ const MyComponent = ({ variant = 'default', ...props }) => {
192187- Mock API calls using SWR's testing utilities
193188- Focus on logic and edge cases rather than implementation details
194189
195- ### Component Tests
190+ ### Component Tests
196191- Use React Testing Library for user-centric testing
197192- Test component behavior and user interactions
198193- Mock complex dependencies like chart libraries
199194
200- ### E2E Tests
201- - Use Playwright for full user journey testing
202- - Test critical paths like authentication and dashboard creation
203- - Ensure cross-browser compatibility
204-
205195## Common Gotchas
206196
207197- ** TypeScript strict mode disabled** : Be extra careful with type checking
0 commit comments