expo-popcore-app/hooks
imeepos a1544ec85f fix: 修复 Jest 测试配置和 useCategories hook 实现
- 修复 jest.setup.js 中不存在的 NativeAnimatedHelper 模块引用
- 优化 jest.config.js 配置,分离 js 和 ts/tsx 的转换配置
- 添加 @testing-library/react 依赖
- 导出 useCategoriesStore 以供测试使用
- 修复 useCategories hook 的参数合并逻辑,确保 inputParams 正确覆盖默认参数
- 修复错误处理时 data 状态设置为 null
- 更新 CategoriesState 类型定义,允许 data 为 null

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-19 11:46:51 +08:00
..
CLAUDE.md Initial commit: expo-popcore-app 2025-12-25 16:25:55 +08:00
index.ts fix: bug 2026-01-16 15:16:49 +08:00
use-activates.ts refactor: 优化代码和添加类型检查脚本 2026-01-16 12:34:27 +08:00
use-categories.test.ts fix: 修复 use-categories 测试中的 TypeScript 类型错误 2026-01-19 11:45:25 +08:00
use-categories.ts fix: 修复 Jest 测试配置和 useCategories hook 实现 2026-01-19 11:46:51 +08:00
use-color-scheme.ts Initial commit: expo-popcore-app 2025-12-25 16:25:55 +08:00
use-color-scheme.web.ts Initial commit: expo-popcore-app 2025-12-25 16:25:55 +08:00
use-error.ts feat: 对接 templateDetail 页面后端接口 2026-01-16 11:56:38 +08:00
use-resource.tsx Initial commit: expo-popcore-app 2025-12-25 16:25:55 +08:00
use-search-history.ts fix: bug 2026-01-16 15:16:49 +08:00
use-tags.ts fix: 修复所有 TypeScript 类型错误 2026-01-16 14:14:05 +08:00
use-template-actions.ts fix: 修复所有 TypeScript 类型错误 2026-01-16 14:14:05 +08:00
use-template-detail.ts feat: 对接 templateDetail 页面后端接口 2026-01-16 11:56:38 +08:00
use-template-generations.ts refactor: 优化代码和添加类型检查脚本 2026-01-16 12:34:27 +08:00
use-templates.ts fix: bug 2026-01-16 15:16:49 +08:00
use-theme-color.ts Initial commit: expo-popcore-app 2025-12-25 16:25:55 +08:00