test(coverage): enforce API and app floors

Measure untouched mobile source, add regression coverage for native media paths and account operations, and enforce ratcheting API and mobile thresholds in required CI checks.
This commit is contained in:
jjbrunton committed 2026-08-29 22:50:07 +01:00
1 parent 5c973c4ac5
commit 5f77b06044
13 files changed
+592 -1

No files matched your search

+15
View File
@@ -17,6 +17,21 @@ module.exports = {
'<rootDir>/src/**/__tests__/**/*.(spec|test).(ts|tsx)',
'<rootDir>/src/**/*.(spec|test).(ts|tsx)',
],
collectCoverageFrom: [
'<rootDir>/app/**/*.{ts,tsx}',
'<rootDir>/src/**/*.{ts,tsx}',
'!<rootDir>/src/**/__tests__/**',
'!<rootDir>/src/test/**',
'!<rootDir>/**/*.d.ts',
],
coverageThreshold: {
global: {
statements: 23,
branches: 17,
functions: 21,
lines: 23,
},
},
transformIgnorePatterns: [
'node_modules/(?!(jest-)?react-native|@react-native|@react-navigation|expo(nent)?|@expo(nent)?/.*|expo-router|react-native-reanimated|react-native-gesture-handler|react-native-safe-area-context|@sentry/react-native|@sentry/.*)',
],