-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
214 lines (214 loc) · 6.82 KB
/
Copy pathpackage.json
File metadata and controls
214 lines (214 loc) · 6.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
{
"name": "worklog",
"main": "expo-router/entry",
"version": "1.0.0",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"lint": "expo lint",
"format": "prettier --write .",
"format:check": "prettier --check .",
"typecheck": "tsc --noEmit",
"test": "jest --coverage",
"verify": "npm run typecheck && npm run format:check && npm run lint && npm test",
"gen:server-columns": "node scripts/gen-server-columns.mjs",
"check:parity": "npm run gen:server-columns && git diff --exit-code src/db/serverColumns.generated.json",
"check:web": "expo export --platform web --output-dir .web-export",
"gen:icons": "node scripts/gen-icons.mjs",
"check:submission": "node scripts/check-submission.mjs",
"submit:ios": "npm run check:submission && eas submit --platform ios",
"submit:android": "npm run check:submission && eas submit --platform android"
},
"jest": {
"preset": "jest-expo",
"setupFilesAfterEnv": [
"<rootDir>/jest.setup.js"
],
"testMatch": [
"**/__tests__/**/*.test.{ts,tsx}",
"**/?(*.)+(test).{ts,tsx}"
],
"_testTimeoutWhy": "Jest's 5s default is a cold-render budget, not a logic budget: the first RTL render in a suite pays jest-expo module load + ThemeProvider setup, which under full-parallel workers on a loaded machine exceeds 5s and fails tests that have no waiting in them at all (#21). The debounce races that used to cause this are gone — sheet tests drive fake timers now — so anything still approaching this ceiling is a real hang worth investigating.",
"testTimeout": 30000,
"testPathIgnorePatterns": [
"/node_modules/",
"<rootDir>/app/",
"<rootDir>/.claude/",
"[\\\\/]website[\\\\/]"
],
"collectCoverageFrom": [
"src/**/*.{ts,tsx}",
"!src/**/*.native.ts",
"!src/**/*.native.tsx",
"!src/**/*.d.ts",
"!src/**/types.ts",
"!src/**/index.ts",
"!src/theme/fonts.ts",
"!src/supabase/client.ts",
"!src/lib/observability.web.ts",
"!src/lib/observabilityTypes.ts",
"!src/platformSplit.test.ts",
"!src/maestroSelectors.test.ts",
"src/db/rows.native.ts",
"src/lib/observability.native.ts"
],
"_collectCoverageFromWhy": "The `!src/**/*.native.ts` negation keeps device-only modules out of the denominator, but it also hid two modules that are not device plumbing (#24): tx(), the global transaction serializer every device write funnels through, and the Sentry incident seam, whose contract is that no report body ever carries user content. Neither had a test or a line in the report. The trailing positive patterns re-add just those files; order matters, a re-include must follow the negation.",
"coverageThreshold": {
"global": {
"branches": 40,
"functions": 57,
"lines": 55,
"statements": 55
},
"src/supabase/storageAdapters.ts": {
"branches": 100,
"functions": 100,
"lines": 100,
"statements": 100
},
"src/sync/mutationQueue.ts": {
"branches": 100,
"functions": 100,
"lines": 100,
"statements": 100
},
"src/sync/conflict.ts": {
"branches": 95,
"functions": 100,
"lines": 95,
"statements": 95
},
"src/sync/statusHub.ts": {
"branches": 100,
"functions": 100,
"lines": 100,
"statements": 100
},
"src/sync/cursors.ts": {
"branches": 95,
"functions": 100,
"lines": 95,
"statements": 95
},
"src/sync/paginate.ts": {
"branches": 88,
"functions": 100,
"lines": 95,
"statements": 95
},
"src/db/rows.native.ts": {
"branches": 100,
"functions": 100,
"lines": 100,
"statements": 100
},
"src/lib/observability.native.ts": {
"branches": 100,
"functions": 100,
"lines": 100,
"statements": 100
},
"src/data/platformRepo.web.ts": {
"branches": 100,
"functions": 100,
"lines": 100,
"statements": 100
},
"src/db/schema.ts": {
"branches": 90,
"functions": 100,
"lines": 90,
"statements": 90
},
"src/data/supabaseRepo.ts": {
"branches": 100,
"functions": 100,
"lines": 100,
"statements": 100
},
"src/components/report/ReportDetailSections.tsx": {
"branches": 100,
"functions": 100,
"lines": 100,
"statements": 100
},
"src/data/lifecycleGuards.ts": {
"branches": 95,
"functions": 100,
"lines": 95,
"statements": 95
},
"src/sync/engineCore.ts": {
"branches": 95,
"functions": 100,
"lines": 95,
"statements": 95
},
"src/sync/rpcMap.ts": {
"branches": 95,
"functions": 100,
"lines": 95,
"statements": 95
},
"src/sync/pullCore.ts": {
"branches": 95,
"functions": 100,
"lines": 95,
"statements": 95
}
}
},
"dependencies": {
"@expo-google-fonts/archivo": "^0.4.2",
"@expo-google-fonts/jetbrains-mono": "^0.4.1",
"@expo-google-fonts/spectral": "^0.4.1",
"@expo/vector-icons": "^15.0.3",
"@react-native-async-storage/async-storage": "2.2.0",
"@react-native-community/netinfo": "11.4.1",
"@sentry/react-native": "~7.2.0",
"@supabase/supabase-js": "^2.108.2",
"@zxcvbn-ts/core": "^4.1.2",
"@zxcvbn-ts/language-common": "^4.1.3",
"@zxcvbn-ts/language-en": "^4.1.1",
"expo": "~54.0.37",
"expo-asset": "~12.0.13",
"expo-constants": "~18.0.14",
"expo-crypto": "~15.0.7",
"expo-dev-client": "~6.0.21",
"expo-font": "~14.0.12",
"expo-linking": "~8.0.12",
"expo-router": "~6.0.24",
"expo-secure-store": "~15.0.8",
"expo-splash-screen": "~31.0.13",
"expo-sqlite": "~16.0.10",
"expo-status-bar": "~3.0.9",
"expo-system-ui": "~6.0.9",
"expo-updates": "~29.0.20",
"react": "19.1.0",
"react-dom": "19.1.0",
"react-native": "0.81.5",
"react-native-safe-area-context": "~5.6.0",
"react-native-screens": "~4.16.0",
"react-native-signature-canvas": "^5.1.0",
"react-native-url-polyfill": "^3.0.0",
"react-native-web": "^0.21.0",
"react-native-webview": "13.15.0"
},
"devDependencies": {
"@babel/core": "^7.25.2",
"@testing-library/react-native": "^13.3.3",
"@types/jest": "29.5.14",
"@types/react": "~19.1.10",
"babel-preset-expo": "~54.0.11",
"eslint": "^9.25.0",
"eslint-config-expo": "~10.0.0",
"jest": "~29.7.0",
"jest-expo": "~54.0.18",
"prettier": "^3.3.0",
"react-test-renderer": "19.1.0",
"typescript": "~5.9.2"
},
"private": true
}