- 新增 app/auth.test.tsx,包含 10 个测试用例 - 测试覆盖加载状态、认证状态、未认证状态、导航行为和副作用 - 优化 Jest 配置,添加 skipLibCheck 和 useLocalSearchParams mock - 添加必要的组件 mock(FlashList、icon、HomeSkeleton 等) - 添加 coverage 目录到 .gitignore - 修复 index.tsx 中多余的 key 属性 - 更新 tsconfig.json 添加 esModuleInterop 和 skipLibCheck 测试覆盖率: app/auth.tsx 达到 100% Co-Authored-By: Claude <noreply@anthropic.com>
16 lines
436 B
JSON
16 lines
436 B
JSON
{
|
|
"extends": "expo/tsconfig.base",
|
|
"compilerOptions": {
|
|
"strict": true,
|
|
"jsx": "react-native",
|
|
"esModuleInterop": true,
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"@/*": ["./*"]
|
|
},
|
|
"skipLibCheck": true
|
|
},
|
|
"include": ["**/*.ts", "**/*.tsx", ".expo/types/**/*.ts", "expo-env.d.ts", "nativewind-env.d.ts"],
|
|
"exclude": ["node_modules", "babel.config.js", "metro.config.js", "jest.config.js", "android", "ios"]
|
|
}
|