feat: 重构测试结构并添加动态表单组件
主要更改: - 重构测试文件结构,删除旧的测试文件并添加新的测试覆盖 - 添加 DynamicForm 组件及其测试 - 更新 Jest 配置以支持新的测试结构 - 更新组件、抽屉和国际化文件 Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -2,16 +2,29 @@
|
||||
module.exports = {
|
||||
preset: 'react-native',
|
||||
transformIgnorePatterns: [
|
||||
'node_modules/(?!(@react-native|react-native|@react-navigation|expo|expo-.*|@expo|@react-native-community|react-native-.*|@shopify|@better-auth|nativewind|react-native-css-interop)/)',
|
||||
'node_modules/(?!(@react-native|react-native|@react-navigation|expo|expo-.*|@expo|@react-native-community|react-native-.*|@shopify|@better-auth|nativewind|react-native-css-interop|@gorhom)/)',
|
||||
],
|
||||
transform: {
|
||||
'^.+\\.(js|jsx)$': 'babel-jest',
|
||||
'^.+\\.(ts|tsx)$': ['ts-jest', {
|
||||
tsconfig: {
|
||||
jsx: 'react',
|
||||
jsxFactory: 'React.createElement',
|
||||
esModuleInterop: true,
|
||||
allowSyntheticDefaultImports: true,
|
||||
skipLibCheck: true,
|
||||
noEmit: true,
|
||||
strict: false,
|
||||
noImplicitAny: false,
|
||||
strictNullChecks: false,
|
||||
strictFunctionTypes: false,
|
||||
strictBindCallApply: false,
|
||||
strictPropertyInitialization: false,
|
||||
noImplicitThis: false,
|
||||
alwaysStrict: false,
|
||||
module: 'esnext',
|
||||
moduleResolution: 'node',
|
||||
isolatedModules: true,
|
||||
},
|
||||
}],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user