Trek_CN/client/tests/unit
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
..
api fix(tests): use node:buffer.Blob so URL.createObjectURL works on Node 22 2026-04-07 23:54:01 +02:00
hooks test(front): add test suite frontend (WIP) 2026-04-07 12:31:09 +02:00
i18n test(client): expand frontend test suite to 69.1% coverage 2026-04-07 21:56:08 +02:00
remoteEventHandler test(front): add test suite frontend (WIP) 2026-04-07 12:31:09 +02:00
services test: expand frontend test suite to 82% coverage 2026-04-08 21:14:49 +02:00
slices fix(tests): mock FormData uploads at API boundary to fix CI timeouts 2026-04-11 02:29:11 +02:00
stores fix(tests): mock FormData uploads at API boundary to fix CI timeouts 2026-04-11 02:29:11 +02:00
utils test(front): add test suite frontend (WIP) 2026-04-07 12:31:09 +02:00
tripStore.test.ts test(front): add test suite frontend (WIP) 2026-04-07 12:31:09 +02:00