Moved later/gitgram-ai/gitgram/ to apps/ritgram/ (fresh history; full history stays in caelum0x/gitgram). AITimeMachine stays separate in later/gitgram-ai per the Rithub master plan. Logs, pid files and env files are ignored; GPL-3.0 mobile/proximity noted in THIRD_PARTY_NOTICES. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
39 lines
1.3 KiB
JavaScript
39 lines
1.3 KiB
JavaScript
module.exports = {
|
|
preset: 'jest-expo',
|
|
transformIgnorePatterns: [
|
|
'node_modules/(?!((jest-)?react-native|@react-native(-community)?)|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@unimodules/.*|unimodules|sentry-expo|native-base|react-native-svg)',
|
|
],
|
|
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
|
|
collectCoverageFrom: [
|
|
'app/**/*.{ts,tsx}',
|
|
'components/**/*.{ts,tsx}',
|
|
'services/**/*.{ts,tsx}',
|
|
'hooks/**/*.{ts,tsx}',
|
|
'utils/**/*.{ts,tsx}',
|
|
'!**/*.d.ts',
|
|
'!**/node_modules/**',
|
|
'!**/__tests__/**',
|
|
'!**/__mocks__/**',
|
|
],
|
|
moduleNameMapper: {
|
|
'^@/(.*)$': '<rootDir>/$1',
|
|
'^expo/src/winter$': '<rootDir>/__mocks__/expoWinter.js',
|
|
},
|
|
testMatch: [
|
|
'**/__tests__/**/*.(ts|tsx|js)',
|
|
'**/*.(test|spec).(ts|tsx|js)',
|
|
],
|
|
// proximity/ is a separate standalone app (its own package.json/node_modules/tsconfig);
|
|
// it is type-checked and tested under its own config, not the canonical app's.
|
|
testPathIgnorePatterns: ['/node_modules/', '/proximity/', '/dist/'],
|
|
modulePathIgnorePatterns: ['<rootDir>/proximity/', '<rootDir>/dist/'],
|
|
coverageThreshold: {
|
|
global: {
|
|
branches: 70,
|
|
functions: 70,
|
|
lines: 70,
|
|
statements: 70,
|
|
},
|
|
},
|
|
};
|