Trek_CN/client/tests/unit/stores
jubnl e3a5bc0f77
fix(tests): mock FormData uploads at API boundary to fix CI timeouts
jsdom's FormData is incompatible with undici's ReadableStream serialisation
used by MSW 2.x — requests hang under CI resource constraints but pass locally.
Replace server.use() + implicit HTTP roundtrip with vi.spyOn().mockResolvedValueOnce()
for all five FormData POST tests (uploadAvatar, uploadRestore, addFile, importGpx).
2026-04-11 02:29:11 +02:00
..
addonStore.test.ts test(front): add test suite frontend (WIP) 2026-04-07 12:31:09 +02:00
authStore.test.ts fix(tests): mock FormData uploads at API boundary to fix CI timeouts 2026-04-11 02:29:11 +02:00
inAppNotificationStore.test.ts test(client): expand frontend test suite to 69.1% coverage 2026-04-07 21:56:08 +02:00
permissionsStore.test.ts test(front): add test suite frontend (WIP) 2026-04-07 12:31:09 +02:00
settingsStore.test.ts test: expand frontend test suite to 82% coverage 2026-04-08 21:14:49 +02:00
vacayStore.test.ts test: expand frontend test suite to 82% coverage 2026-04-08 21:14:49 +02:00