馃И Add Unit Tests for useTodos Hook
馃搵 Overview
Create comprehensive unit tests for the useTodos custom hook to ensure all CRUD operations, error handling, and state management work correctly.
馃幆 Acceptance Criteria
馃敡 Technical Requirements
- Use Jest + React Testing Library
- Mock fetch API calls
- Test both success and error scenarios
- TypeScript support for test files
馃毇 Out of Scope
- Integration tests with real API
- Component integration testing
- End-to-end testing scenarios
- Performance testing
- Testing Next.js specific features
馃摎 Resources
馃挕 Testing Tips
- Test one function at a time
- Always test both happy and unhappy cases
- Use descriptive test names
- Mock external dependencies
馃И Add Unit Tests for useTodos Hook
馃搵 Overview
Create comprehensive unit tests for the
useTodoscustom hook to ensure all CRUD operations, error handling, and state management work correctly.馃幆 Acceptance Criteria
hooks/use-todos.spec.tsis createdaddTodo,updateTodo,toggleTodo,deleteTodonpm test馃敡 Technical Requirements
馃毇 Out of Scope
馃摎 Resources
馃挕 Testing Tips