Squash merge feat/expo-app: app-expo, .cursor, workflows, package.json, .husky; remove app-android, app-ios, react-app

This commit is contained in:
Kevin
2026-03-19 01:12:17 +08:00
parent 9e4f301ab9
commit b4f4369b7d
544 changed files with 23707 additions and 67151 deletions

28
app-expo/jest.config.js Normal file
View File

@@ -0,0 +1,28 @@
module.exports = {
preset: 'jest-expo',
clearMocks: true,
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
},
testMatch: ['<rootDir>/tests/**/*.test.ts', '<rootDir>/tests/**/*.test.tsx'],
testPathIgnorePatterns: ['/node_modules/', '/.expo/', '/android/', '/ios/'],
transformIgnorePatterns: [
'node_modules/(?!((jest-)?react-native|@react-native(-community)?)|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@sentry/react-native|native-base|react-native-svg)',
],
collectCoverageFrom: [
'<rootDir>/src/core/**/*.{ts,tsx}',
'<rootDir>/src/features/**/*.{ts,tsx}',
'<rootDir>/src/constants/theme-bridge.ts',
'<rootDir>/src/i18n/index.ts',
],
coverageDirectory: '<rootDir>/coverage/jest',
coverageReporters: ['text', 'lcov', 'json-summary'],
coverageThreshold: {
global: {
branches: 80,
functions: 90,
lines: 90,
statements: 90,
},
},
};